[FFmpeg-devel] [PATCH] 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 michaelni at gmx.at
Thu Dec 1 21:36:42 CET 2011


On Thu, Dec 01, 2011 at 09:32:05PM +0100, Marton Balint wrote:
> 
> On Wed, 30 Nov 2011, Michael Niedermayer wrote:
> 
> >Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> >---
> >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) {
> >-- 
> >1.7.5.4
> 
> Pushed to my stable branch, please merge.

done, thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In fact, the RIAA has been known to suggest that students drop out
of college or go to community college in order to be able to afford
settlements. -- The RIAA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20111201/08844299/attachment.asc>


More information about the ffmpeg-devel mailing list