diff ac3dec.c @ 7625:da9353cd6d71 libavcodec

get data size based on the actual data array instead of coding-in the calculation
author jbr
date Wed, 20 Aug 2008 00:15:27 +0000
parents 545305ba44a0
children 8618fb5d9bce
line wrap: on
line diff
--- a/ac3dec.c	Wed Aug 20 00:08:59 2008 +0000
+++ b/ac3dec.c	Wed Aug 20 00:15:27 2008 +0000
@@ -657,7 +657,7 @@
  */
 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: