1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

pcm: fix handling of more than 8 channels for planar

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-11-02 14:00:23 +01:00
parent db9f426cab
commit 00aa7fa786

View File

@ -343,7 +343,7 @@ static int pcm_decode_frame(AVCodecContext *avctx, void *data,
int i; int i;
n /= avctx->channels; n /= avctx->channels;
for (c = 0; c < avctx->channels; c++) { for (c = 0; c < avctx->channels; c++) {
samples = s->frame.data[c]; samples = s->frame.extended_data[c];
for (i = n; i > 0; i--) { for (i = n; i > 0; i--) {
AV_WN16A(samples, bytestream_get_le16(&src)); AV_WN16A(samples, bytestream_get_le16(&src));
samples += 2; samples += 2;