[FFmpeg-soc] [soc]: r4982 - amr/amrnbdec.c
cmcq
subversion at mplayerhq.hu
Sat Aug 8 21:38:54 CEST 2009
Author: cmcq
Date: Sat Aug 8 21:38:54 2009
New Revision: 4982
Log:
Clipping to 32767.0/32768.0 is ok for now (discussed on ffmpeg-devel)
Modified:
amr/amrnbdec.c
Modified: amr/amrnbdec.c
==============================================================================
--- amr/amrnbdec.c Fri Aug 7 23:55:29 2009 (r4981)
+++ amr/amrnbdec.c Sat Aug 8 21:38:54 2009 (r4982)
@@ -1126,7 +1126,8 @@ static int amrnb_decode_frame(AVCodecCon
ff_acelp_high_pass_filterf(buf_out, p->high_pass_mem, AMR_BLOCK_SIZE);
for (i = 0; i < AMR_BLOCK_SIZE; i++)
- buf_out[i] = av_clipf(buf_out[i] * AMR_SAMPLE_SCALE, -1, 1);
+ buf_out[i] = av_clipf(buf_out[i] * AMR_SAMPLE_SCALE,
+ -1.0, 32767.0/32768.0);
/* Update averaged lsf vector (used for fixed gain smoothing).
*
More information about the FFmpeg-soc
mailing list