diff libmpdemux/demux_lavf.c @ 25919:382672c7480a

Allow demuxers to choose a default value for correct_pts
author reimar
date Sun, 03 Feb 2008 12:14:29 +0000
parents 0190494dfdb2
children 1b30560b5b25
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c	Sat Feb 02 17:22:07 2008 +0000
+++ b/libmpdemux/demux_lavf.c	Sun Feb 03 12:14:29 2008 +0000
@@ -463,7 +463,7 @@
 
     if (opt_cryptokey)
         parse_cryptokey(avfc, opt_cryptokey);
-    if (correct_pts)
+    if (user_correct_pts != 0)
         avfc->flags |= AVFMT_FLAG_GENPTS;
     if (index_mode == 0)
         avfc->flags |= AVFMT_FLAG_IGNIDX;
@@ -644,6 +644,8 @@
     lavf_priv_t *priv = demuxer->priv;
 
     switch (cmd) {
+        case DEMUXER_CTRL_CORRECT_PTS:
+	    return DEMUXER_CTRL_OK;
         case DEMUXER_CTRL_GET_TIME_LENGTH:
 	    if (priv->avfc->duration == 0 || priv->avfc->duration == AV_NOPTS_VALUE)
 	        return DEMUXER_CTRL_DONTKNOW;