[MPlayer-cvslog] r33116 - trunk/mplayer.c

reimar subversion at mplayerhq.hu
Sat Mar 26 17:01:00 CET 2011


Author: reimar
Date: Sat Mar 26 17:01:00 2011
New Revision: 33116

Log:
For a stream without pts values time video frames based on fps
value.

Modified:
   trunk/mplayer.c

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	Sat Mar 26 14:00:11 2011	(r33115)
+++ trunk/mplayer.c	Sat Mar 26 17:01:00 2011	(r33116)
@@ -2460,6 +2460,8 @@ static double update_video(int *blit_fra
 	    mp_msg(MSGT_CPLAYER, MSGL_V, "pts value < previous\n");
 	}
 	frame_time = sh_video->pts - sh_video->last_pts;
+	if (sh_video->last_pts == MP_NOPTS_VALUE)
+	    frame_time = sh_video->frametime;
 	sh_video->last_pts = sh_video->pts;
 	sh_video->timer += frame_time;
 	if(mpctx->sh_audio)


More information about the MPlayer-cvslog mailing list