diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2008-08-20 00:15:27 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2008-08-20 00:15:27 +0000 |
commit | e630027686a4798cf213b8f76a7bf34ee61ced80 (patch) | |
tree | 602099a1847672ea7053311705a1bef5a439b681 /libavcodec/ac3dec.c | |
parent | 8e33132babaff31f74f6788efbe4b660a142c096 (diff) | |
download | ffmpeg-streaming-e630027686a4798cf213b8f76a7bf34ee61ced80.zip ffmpeg-streaming-e630027686a4798cf213b8f76a7bf34ee61ced80.tar.gz |
get data size based on the actual data array instead of coding-in the calculation
Originally committed as revision 14859 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3dec.c')
-rw-r--r-- | libavcodec/ac3dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c index 4760197..ddee8b2 100644 --- a/libavcodec/ac3dec.c +++ b/libavcodec/ac3dec.c @@ -657,7 +657,7 @@ void ff_ac3_downmix_c(float (*samples)[256], float (*matrix)[2], int out_ch, int */ 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: |