[Mplayer-cvslog] CVS: main/libmpdemux demux_lavf.c,1.8,1.9

Michael Niedermayer CVS syncmail at mplayerhq.hu
Sun Oct 24 21:17:57 CEST 2004


CVS change done by Michael Niedermayer CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv16177

Modified Files:
	demux_lavf.c 
Log Message:
10l (mplayer doesnt like AV_NOPTS_VALUE)


Index: demux_lavf.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_lavf.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- demux_lavf.c	10 Oct 2004 22:24:07 -0000	1.8
+++ demux_lavf.c	24 Oct 2004 19:17:55 -0000	1.9
@@ -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:




More information about the MPlayer-cvslog mailing list