projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa64ee3
)
Another av_clipf() usage
author
Vitor Sessak
<vitor1001@gmail.com>
Sun, 13 Jul 2008 20:39:55 +0000
(20:39 +0000)
committer
Vitor Sessak
<vitor1001@gmail.com>
Sun, 13 Jul 2008 20:39:55 +0000
(20:39 +0000)
Originally committed as revision 14217 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/ra288.c
patch
|
blob
|
history
diff --git
a/libavcodec/ra288.c
b/libavcodec/ra288.c
index cd7d6240506b6dc5101b9b07127da5d96421ee79..60e985498a47d6178cafcb92b1093b84708e6bb0 100644
(file)
--- a/
libavcodec/ra288.c
+++ b/
libavcodec/ra288.c
@@
-62,10
+62,7
@@
static void decode(Real288_internal *glob, float gain, int cb_coef)
/* convert log and do rms */
sum = 32. - scalar_product_float(glob->pr2, glob->lhist, 10);
- if (sum < 0)
- sum = 0;
- else if (sum > 60)
- sum = 60;
+ sum = av_clipf(sum, 0, 60);
sumsum = exp(sum * 0.1151292546497) * gain; /* pow(10.0,sum/20)*f */