mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 09:12:33 +00:00
Simplify
Originally committed as revision 14218 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
3819081f75
commit
b903a9285e
@ -69,9 +69,7 @@ static void decode(Real288_internal *glob, float gain, int cb_coef)
|
||||
for (x=0; x < 5; x++)
|
||||
buffer[x] = codetable[cb_coef][x] * sumsum;
|
||||
|
||||
sum = scalar_product_float(buffer, buffer, 5) / 5;
|
||||
|
||||
sum = FFMAX(sum, 1);
|
||||
sum = FFMAX(1, scalar_product_float(buffer, buffer, 5) / 5);
|
||||
|
||||
/* shift and store */
|
||||
memmove(glob->lhist, glob->lhist - 1, 10 * sizeof(*glob->lhist));
|
||||
|
Loading…
Reference in New Issue
Block a user