[FFmpeg-cvslog] ffplay: Copy audio side data too. This fixes handling of some rare nellymoser files that change the sample rate mid stream (sample file at: http://trac.videolan.org/vlc/ticket/5586)

Michael Niedermayer git at videolan.org
Thu Dec 1 21:37:05 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Nov 30 21:33:34 2011 +0100| [59a58884b9f2fb42720d78e1af643c0f0b46b2ac] | committer: Marton Balint

ffplay: Copy audio side data too. This fixes handling of some rare nellymoser files that change the sample rate mid stream (sample file at: http://trac.videolan.org/vlc/ticket/5586)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
Signed-off-by: Marton Balint <cus at passwd.hu>

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

 ffplay.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/ffplay.c b/ffplay.c
index 75e0bb5..51753e2 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2152,6 +2152,9 @@ static int audio_decode_frame(VideoState *is, double *pts_ptr)
 
         pkt_temp->data = pkt->data;
         pkt_temp->size = pkt->size;
+        pkt_temp->flags           = pkt->flags;
+        pkt_temp->side_data       = pkt->side_data;
+        pkt_temp->side_data_elems = pkt->side_data_elems;
 
         /* if update the audio clock with the pts */
         if (pkt->pts != AV_NOPTS_VALUE) {



More information about the ffmpeg-cvslog mailing list