diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-07-13 20:39:55 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-07-13 20:39:55 +0000 |
commit | 3819081f75a52c0f9501674a94429bb9d2a78626 (patch) | |
tree | 06dcf6a28a857a59aa5a9befbe0345d7695e38c8 /libavcodec/ra288.c | |
parent | aa64ee30d1bb7e002b0a173e8d30f22462b8a6e5 (diff) | |
download | ffmpeg-3819081f75a52c0f9501674a94429bb9d2a78626.tar.gz |
Another av_clipf() usage
Originally committed as revision 14217 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ra288.c')
-rw-r--r-- | libavcodec/ra288.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libavcodec/ra288.c b/libavcodec/ra288.c index cd7d624050..60e985498a 100644 --- 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 */ |