[FFmpeg-cvslog] r14859 - trunk/libavcodec/ac3dec.c

jbr subversion
Wed Aug 20 02:15:28 CEST 2008


Author: jbr
Date: Wed Aug 20 02:15:27 2008
New Revision: 14859

Log:
get data size based on the actual data array instead of coding-in the calculation

Modified:
   trunk/libavcodec/ac3dec.c

Modified: trunk/libavcodec/ac3dec.c
==============================================================================
--- trunk/libavcodec/ac3dec.c	(original)
+++ trunk/libavcodec/ac3dec.c	Wed Aug 20 02:15:27 2008
@@ -657,7 +657,7 @@ void ff_ac3_downmix_c(float (*samples)[2
  */
 static void ac3_upmix_delay(AC3DecodeContext *s)
 {
-    int channel_data_size = 128*sizeof(float);
+    int channel_data_size = sizeof(s->delay[0]);
     switch(s->channel_mode) {
         case AC3_CHMODE_DUALMONO:
         case AC3_CHMODE_STEREO:




More information about the ffmpeg-cvslog mailing list