1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-13 21:28:01 +02:00

Simplify: use FFMAX

Originally committed as revision 14215 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Vitor Sessak 2008-07-13 20:36:32 +00:00
parent b08edb2268
commit 1894db1487

View File

@ -74,8 +74,7 @@ static void decode(Real288_internal *glob, float gain, int cb_coef)
sum = scalar_product_float(buffer, buffer, 5) / 5;
if (sum < 1)
sum = 1;
sum = FFMAX(sum, 1);
/* shift and store */
memmove(glob->lhist, glob->lhist - 1, 10 * sizeof(*glob->lhist));