[MPlayer-cvslog] r30100 - trunk/libmpdemux/demux_lavf.c

Carl Eugen Hoyos cehoyos at ag.or.at
Mon Dec 28 02:23:42 CET 2009


compn <tempn <at> twmi.rr.com> writes:

> >Log:
> >Do not use correct-pts by default for demuxer lavf, it breaks all PAFF files.
> 
> this makes some mp4 files play in 'fast forward'
> sample: incoming/8mb.mp4

Following inlined patch fixes it (a PAFF in mov sample is attached to issue 944).

I'll apply if nobody objects, Carl Eugen

Index: libmpdemux/demux_lavf.c
===================================================================
--- libmpdemux/demux_lavf.c     (revision 30131)
+++ libmpdemux/demux_lavf.c     (working copy)
@@ -612,6 +612,11 @@
     lavf_priv_t *priv = demuxer->priv;

     switch (cmd) {
+        case DEMUXER_CTRL_CORRECT_PTS:
+           if (!strcmp("mov,mp4,m4a,3gp,3g2,mj2", priv->avif->name))
+               return DEMUXER_CTRL_OK;
+           else
+               return DEMUXER_CTRL_NOTIMPL;
         case DEMUXER_CTRL_GET_TIME_LENGTH:
            if (priv->avfc->duration == 0 || priv->avfc->duration == AV_NOPTS_VALUE)
                return DEMUXER_CTRL_DONTKNOW;




More information about the MPlayer-cvslog mailing list