Skip to content
Snippets Groups Projects
Commit b903a928 authored by Vitor Sessak's avatar Vitor Sessak
Browse files

Simplify

Originally committed as revision 14218 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 3819081f
No related branches found
No related tags found
No related merge requests found
...@@ -69,9 +69,7 @@ static void decode(Real288_internal *glob, float gain, int cb_coef) ...@@ -69,9 +69,7 @@ static void decode(Real288_internal *glob, float gain, int cb_coef)
for (x=0; x < 5; x++) for (x=0; x < 5; x++)
buffer[x] = codetable[cb_coef][x] * sumsum; buffer[x] = codetable[cb_coef][x] * sumsum;
sum = scalar_product_float(buffer, buffer, 5) / 5; sum = FFMAX(1, scalar_product_float(buffer, buffer, 5) / 5);
sum = FFMAX(sum, 1);
/* shift and store */ /* shift and store */
memmove(glob->lhist, glob->lhist - 1, 10 * sizeof(*glob->lhist)); memmove(glob->lhist, glob->lhist - 1, 10 * sizeof(*glob->lhist));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment