[FFmpeg-soc] [soc]: r788 - qcelp/qcelpdec.c

reynaldo subversion at mplayerhq.hu
Tue Aug 14 19:41:19 CEST 2007


Author: reynaldo
Date: Tue Aug 14 19:41:19 2007
New Revision: 788

Log:
Fix error at clip boundary spoted by Aurelien Jacobs -- for real -- second try

Modified:
   qcelp/qcelpdec.c

Modified: qcelp/qcelpdec.c
==============================================================================
--- qcelp/qcelpdec.c	(original)
+++ qcelp/qcelpdec.c	Tue Aug 14 19:41:19 2007
@@ -865,7 +865,7 @@ static int qcelp_decode_frame(AVCodecCon
         /* WIP adaptive postfilter here */
 
         /* output stage */
-        outbuffer[i]=av_clip(lrintf(4*ppf_vector[i]), -32768, 32767);
+        outbuffer[i]=av_clip_int16(lrintf(4*ppf_vector[i]));
         av_log(avctx, AV_LOG_DEBUG, "%d", outbuffer[i]);
     }
     av_log(avctx, AV_LOG_DEBUG, "\n");



More information about the FFmpeg-soc mailing list