[FFmpeg-cvslog] pcm: fix handling of more than 8 channels for planar

Michael Niedermayer git at videolan.org
Fri Nov 2 14:05:39 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Nov  2 14:00:23 2012 +0100| [00aa7fa786e41b5fc8404732453869aa3c14e33a] | committer: Michael Niedermayer

pcm: fix handling of more than 8 channels for planar

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=00aa7fa786e41b5fc8404732453869aa3c14e33a
---

 libavcodec/pcm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c
index c00f0b0..85a5fe6 100644
--- a/libavcodec/pcm.c
+++ b/libavcodec/pcm.c
@@ -343,7 +343,7 @@ static int pcm_decode_frame(AVCodecContext *avctx, void *data,
         int i;
         n /= avctx->channels;
         for (c = 0; c < avctx->channels; c++) {
-            samples = s->frame.data[c];
+            samples = s->frame.extended_data[c];
             for (i = n; i > 0; i--) {
                 AV_WN16A(samples, bytestream_get_le16(&src));
                 samples += 2;



More information about the ffmpeg-cvslog mailing list