Commit 3cb3751a authored by jbr's avatar jbr

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14859 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a4dee4d6
...@@ -657,7 +657,7 @@ void ff_ac3_downmix_c(float (*samples)[256], float (*matrix)[2], int out_ch, int ...@@ -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) 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) { switch(s->channel_mode) {
case AC3_CHMODE_DUALMONO: case AC3_CHMODE_DUALMONO:
case AC3_CHMODE_STEREO: case AC3_CHMODE_STEREO:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment