[FFmpeg-soc] [soc]: r1544 - amr/amrnbfloatdec.c

superdump subversion at mplayerhq.hu
Mon Dec 10 16:50:23 CET 2007


Author: superdump
Date: Mon Dec 10 16:50:23 2007
New Revision: 1544

Log:
Don't overwrite the decoded subframe samples with the next. Concatenate them
in the output.


Modified:
   amr/amrnbfloatdec.c

Modified: amr/amrnbfloatdec.c
==============================================================================
--- amr/amrnbfloatdec.c	(original)
+++ amr/amrnbfloatdec.c	Mon Dec 10 16:50:23 2007
@@ -1287,7 +1287,7 @@ static int amrnb_decode_frame(AVCodecCon
             p->samples_in[i] += p->add_bias;
         }
         p->dsp.float_to_int16(p->samples_out, p->samples_in, AMR_SUBFRAME_SIZE);
-        memcpy(buf_out, p->samples_out, AMR_SUBFRAME_SIZE*sizeof(int16_t));
+        memcpy(&buf_out[subframe*AMR_SUBFRAME_SIZE], p->samples_out, AMR_SUBFRAME_SIZE*sizeof(int16_t));
 
         // update buffers and history
         update_state(p);



More information about the FFmpeg-soc mailing list