mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
ac3dec: fix outptr increment.
Fixes corrupt data errors when downmixing in the AC-3 decoder. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com> CC:libav-stable@libav.org
This commit is contained in:
parent
a1c5cc429d
commit
6c82c87dbb
@ -1400,7 +1400,7 @@ static int ac3_decode_frame(AVCodecContext * avctx, void *data,
|
||||
memcpy(s->outptr[channel_map[ch]], output[ch], sizeof(**output) * AC3_BLOCK_SIZE);
|
||||
for (ch = 0; ch < s->out_channels; ch++)
|
||||
output[ch] = s->outptr[channel_map[ch]];
|
||||
for (ch = 0; ch < s->channels; ch++)
|
||||
for (ch = 0; ch < s->out_channels; ch++)
|
||||
s->outptr[ch] += AC3_BLOCK_SIZE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user