[FFmpeg-cvslog] r14217 - trunk/libavcodec/ra288.c

vitor subversion
Sun Jul 13 22:39:56 CEST 2008


Author: vitor
Date: Sun Jul 13 22:39:55 2008
New Revision: 14217

Log:
Another av_clipf() usage

Modified:
   trunk/libavcodec/ra288.c

Modified: trunk/libavcodec/ra288.c
==============================================================================
--- trunk/libavcodec/ra288.c	(original)
+++ trunk/libavcodec/ra288.c	Sun Jul 13 22:39:55 2008
@@ -62,10 +62,7 @@ static void decode(Real288_internal *glo
     /* 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 */
 




More information about the ffmpeg-cvslog mailing list