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

reimar subversion at mplayerhq.hu
Sat Apr 29 14:09:24 EEST 2017


Author: reimar
Date: Sat Apr 29 14:09:23 2017
New Revision: 37935

Log:
mplayer.c: Fix timing of first frame.

It would usually be displayed twice as long.

Modified:
   trunk/mplayer.c

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	Wed Apr 26 14:59:24 2017	(r37934)
+++ trunk/mplayer.c	Sat Apr 29 14:09:23 2017	(r37935)
@@ -2536,7 +2536,9 @@ 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 (!frame_time)
+        // The first frame should be displayed directly,
+        // all others should get a default frame_time
+        if (!frame_time && mpctx->startup_decode_retry == 0)
             frame_time = sh_video->frametime;
         sh_video->last_pts = sh_video->pts;
         advance_timer(frame_time);


More information about the MPlayer-cvslog mailing list