OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3819081
)
Simplify
author
Vitor Sessak
<vitor1001@gmail.com>
Sun, 13 Jul 2008 20:41:09 +0000
(20:41 +0000)
committer
Vitor Sessak
<vitor1001@gmail.com>
Sun, 13 Jul 2008 20:41:09 +0000
(20:41 +0000)
Originally committed as revision 14218 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/ra288.c
patch
|
blob
|
history
diff --git
a/libavcodec/ra288.c
b/libavcodec/ra288.c
index
60e9854
..
0a1d2e4
100644
(file)
--- 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));