summaryrefslogtreecommitdiffstats
path: root/libavcodec/ra288.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-07-13 20:41:09 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-07-13 20:41:09 +0000
commitb903a9285e82d56ffeee290dae70843e55e88a40 (patch)
tree8255d61168dbecf5f8a9e3524858284bf8266d71 /libavcodec/ra288.c
parent3819081f75a52c0f9501674a94429bb9d2a78626 (diff)
downloadffmpeg-streaming-b903a9285e82d56ffeee290dae70843e55e88a40.zip
ffmpeg-streaming-b903a9285e82d56ffeee290dae70843e55e88a40.tar.gz
Simplify
Originally committed as revision 14218 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ra288.c')
-rw-r--r--libavcodec/ra288.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/ra288.c b/libavcodec/ra288.c
index 60e9854..0a1d2e4 100644
--- a/libavcodec/ra288.c
+++ b/libavcodec/ra288.c
@@ -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));
OpenPOWER on IntegriCloud