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

reimar subversion at mplayerhq.hu
Sat Mar 26 17:02:44 CET 2011


Author: reimar
Date: Sat Mar 26 17:02:44 2011
New Revision: 33117

Log:
Generalize previous commit: assume that a 0 frame time is always wrong
and replace it with a fps-based value.

Modified:
   trunk/mplayer.c

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	Sat Mar 26 17:01:00 2011	(r33116)
+++ trunk/mplayer.c	Sat Mar 26 17:02:44 2011	(r33117)
@@ -2460,7 +2460,7 @@ 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)
+	if (!frame_time)
 	    frame_time = sh_video->frametime;
 	sh_video->last_pts = sh_video->pts;
 	sh_video->timer += frame_time;


More information about the MPlayer-cvslog mailing list