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

superdump subversion at mplayerhq.hu
Sat Jul 12 22:17:40 CEST 2008


Author: superdump
Date: Sat Jul 12 22:17:40 2008
New Revision: 2766

Log:
Reset array into which AMR parameters are read before reading


Modified:
   amr/amrnbfloatdec.c

Modified: amr/amrnbfloatdec.c
==============================================================================
--- amr/amrnbfloatdec.c	(original)
+++ amr/amrnbfloatdec.c	Sat Jul 12 22:17:40 2008
@@ -159,6 +159,9 @@ enum Mode decode_bitstream(AMRContext *p
     int i;
     const AMROrder *order;
 
+    // reset amr_prms
+    memset(p->amr_prms, 0, PRMS_MODE_122 * sizeof(int16_t));
+
     // initialise get_bits
     init_get_bits(&p->gb, buf, buf_size*8);
     skip_bits(&p->gb, 1);



More information about the FFmpeg-soc mailing list