diff libmpdemux/demux_lavf.c @ 13747:1bdec8201f77

10l (mplayer doesnt like AV_NOPTS_VALUE)
author michael
date Sun, 24 Oct 2004 19:17:55 +0000
parents 3d262519187b
children dd7199cfb8e4
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: