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

superdump subversion at mplayerhq.hu
Wed Sep 5 14:32:23 CEST 2007


Author: superdump
Date: Wed Sep  5 14:32:22 2007
New Revision: 1292

Log:
Use AMR_BLOCK_SIZE instead of 160

Modified:
   amr/amrnbdec.c

Modified: amr/amrnbdec.c
==============================================================================
--- amr/amrnbdec.c	(original)
+++ amr/amrnbdec.c	Wed Sep  5 14:32:22 2007
@@ -94,7 +94,7 @@ static int amrnb_decode_init(AVCodecCont
     }
 
     // allocate and zero the sample buffer
-    p->sample_buffer = av_mallocz(sizeof(int16_t)*160);
+    p->sample_buffer = av_mallocz(sizeof(int16_t)*AMR_BLOCK_SIZE);
     // allocate and zero the amr parameters
     p->amr_prms = av_mallocz(sizeof(int16_t)*PRMS_MODE_122);
     // allocate and zero the decoder state
@@ -747,7 +747,7 @@ static void reconstruct_fixed_code(int *
     int i;
 
     // reset the code
-    memset(fixed_code, 0, 160);
+    memset(fixed_code, 0, AMR_BLOCK_SIZE);
 
     // assign the pulse values (+/-1) to their appropriate positions
     for(i=0; i<nr_pulses; i++)



More information about the FFmpeg-soc mailing list