changeset 13747:1bdec8201f77

10l (mplayer doesnt like AV_NOPTS_VALUE)
author michael
date Sun, 24 Oct 2004 19:17:55 +0000
parents 03b6c4539b3c
children f2234d265869
files libmpdemux/demux_lavf.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c	Sun Oct 24 13:37:35 2004 +0000
+++ b/libmpdemux/demux_lavf.c	Sun Oct 24 19:17:55 2004 +0000
@@ -309,9 +309,10 @@
         av_free_packet(&pkt);
     }
 
-    priv->last_pts= pkt.pts;
-    
-    dp->pts=pkt.pts / (float)AV_TIME_BASE;
+    if(pkt.pts != AV_NOPTS_VALUE){
+        priv->last_pts= pkt.pts;
+        dp->pts=pkt.pts / (float)AV_TIME_BASE;
+    }
     dp->pos=demux->filepos;
     dp->flags= !!(pkt.flags&PKT_FLAG_KEY);
     // append packet to DS stream: