diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-07-13 20:36:32 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-07-13 20:36:32 +0000 |
commit | 1894db14873d04c1778592c1146a20fa57af5b11 (patch) | |
tree | e7261b886b3aa55330ff19fed3993852052a5d72 | |
parent | b08edb22684c1848b1c6186848585c324d9aae62 (diff) | |
download | ffmpeg-1894db14873d04c1778592c1146a20fa57af5b11.tar.gz |
Simplify: use FFMAX
Originally committed as revision 14215 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/ra288.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/ra288.c b/libavcodec/ra288.c index 57ee6c20dd..35d21f4277 100644 --- a/libavcodec/ra288.c +++ b/libavcodec/ra288.c @@ -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)); |