changeset 30092:b636fc3f4960

Do not use correct-pts for mpeg-ts and matroska: It breaks PAFF samples.
author cehoyos
date Mon, 28 Dec 2009 13:49:08 +0000
parents 1368993fb7a9
children 438cdc01ce3e
files libmpdemux/demux_lavf.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c	Mon Dec 28 13:39:26 2009 +0000
+++ b/libmpdemux/demux_lavf.c	Mon Dec 28 13:49:08 2009 +0000
@@ -613,6 +613,9 @@
 
     switch (cmd) {
         case DEMUXER_CTRL_CORRECT_PTS:
+            if (!strcmp("matroska", priv->avif->name) ||
+                !strcmp("mpegts",   priv->avif->name))
+                return DEMUXER_CTRL_NOTIMPL;
 	    return DEMUXER_CTRL_OK;
         case DEMUXER_CTRL_GET_TIME_LENGTH:
 	    if (priv->avfc->duration == 0 || priv->avfc->duration == AV_NOPTS_VALUE)