[FFmpeg-cvslog] ffplay: fix planar audio

Michael Niedermayer git at videolan.org
Fri Jul 20 03:45:30 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Jul 20 03:36:33 2012 +0200| [cdafec69cef73eb87d002cac521c1d6a015e3bc6] | committer: Michael Niedermayer

ffplay: fix planar audio

This caused ALAC to fail since the last merge

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

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

 ffplay.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffplay.c b/ffplay.c
index c026c4c..778bc5b 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1980,7 +1980,7 @@ static int audio_decode_frame(VideoState *is, double *pts_ptr)
             }
 
             if (is->swr_ctx) {
-                const uint8_t *in[] = { is->frame->data[0] };
+                const uint8_t **in = is->frame->extended_data;
                 uint8_t *out[] = {is->audio_buf2};
                 int out_count = sizeof(is->audio_buf2) / is->audio_tgt.channels / av_get_bytes_per_sample(is->audio_tgt.fmt);
                 if (wanted_nb_samples != is->frame->nb_samples) {



More information about the ffmpeg-cvslog mailing list