[FFmpeg-soc] [soc]: r4952 - amr/amrnbdec.c

cmcq subversion at mplayerhq.hu
Wed Aug 5 16:24:45 CEST 2009


Author: cmcq
Date: Wed Aug  5 16:24:45 2009
New Revision: 4952

Log:
Scaling to [-1,1] should be correct; audioconvert.c may have to be changed

Modified:
   amr/amrnbdec.c

Modified: amr/amrnbdec.c
==============================================================================
--- amr/amrnbdec.c	Wed Aug  5 15:40:50 2009	(r4951)
+++ amr/amrnbdec.c	Wed Aug  5 16:24:45 2009	(r4952)
@@ -1125,9 +1125,7 @@ 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++)
-        // FIXME: merge with qcelpdec.c
-        buf_out[i] = av_clipf(buf_out[i] * AMR_SAMPLE_SCALE,
-                              -1.0, 32767.0 / 32768.0);
+        buf_out[i] = av_clipf(buf_out[i] * AMR_SAMPLE_SCALE, -1, 1);
 
     /* Update averaged lsf vector (used for fixed gain smoothing).
      *


More information about the FFmpeg-soc mailing list