[FFmpeg-soc] [soc]: r899 - qcelp/qcelpdec.c
reynaldo
subversion at mplayerhq.hu
Thu Aug 16 23:02:03 CEST 2007
Author: reynaldo
Date: Thu Aug 16 23:02:03 2007
New Revision: 899
Log:
explicit floor-ing at gain quantizer predictor
Modified:
qcelp/qcelpdec.c
Modified: qcelp/qcelpdec.c
==============================================================================
--- qcelp/qcelpdec.c (original)
+++ qcelp/qcelpdec.c Thu Aug 16 23:02:03 2007
@@ -181,7 +181,8 @@ void qcelp_decode_params(AVCodecContext
/* FIXME this needs to be further examinated */
if(frame->rate == RATE_FULL && i > 0 && !((i+1) & 3))
- predictor=av_clip((g1[i-1]+g1[i-2]+g1[i-3])/3, 6, 38);
+ predictor=av_clip(floor((g1[i-1]+g1[i-2]+g1[i-3])/3), 6,
+ 38);
else
predictor=0;
More information about the FFmpeg-soc
mailing list