1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-08-30 05:06:16 +02:00

ac3dec: fix outptr increment.

Fixes decoding regression

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-12-17 01:35:14 +01:00
parent 7973a07590
commit d28dfa2d42

View File

@ -1402,9 +1402,8 @@ static int ac3_decode_frame(AVCodecContext * avctx, void *data,
memcpy(((float*)s->frame.data[ch]) + AC3_BLOCK_SIZE*blk, output[ch], 1024); memcpy(((float*)s->frame.data[ch]) + AC3_BLOCK_SIZE*blk, output[ch], 1024);
for (ch = 0; ch < s->out_channels; ch++) { for (ch = 0; ch < s->out_channels; ch++) {
output[ch] = s->outptr[channel_map[ch]]; output[ch] = s->outptr[channel_map[ch]];
} if (!ch || channel_map[ch])
for (ch = 0; ch < s->channels; ch++) { s->outptr[channel_map[ch]] += AC3_BLOCK_SIZE;
s->outptr[ch] += AC3_BLOCK_SIZE;
} }
} }