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

reimar subversion at mplayerhq.hu
Mon Aug 12 21:37:34 CEST 2013


Author: reimar
Date: Mon Aug 12 21:37:33 2013
New Revision: 36419

Log:
Do not increment frame drop count when at EOF.

Modified:
   trunk/mplayer.c

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	Sun Aug 11 20:28:58 2013	(r36418)
+++ trunk/mplayer.c	Mon Aug 12 21:37:33 2013	(r36419)
@@ -1788,7 +1788,7 @@ static int generate_video_frame(sh_video
     double pts;
 
     while (1) {
-        int drop_frame = check_framedrop(sh_video->frametime);
+        int drop_frame = 0;
         void *decoded_frame;
         current_module = "decode video";
         // XXX Time used in this call is not counted in any performance
@@ -1803,8 +1803,8 @@ static int generate_video_frame(sh_video
             start   = NULL;
             pts     = MP_NOPTS_VALUE;
             hit_eof = 1;
-            drop_frame = 0;
-        }
+        } else
+	    drop_frame = check_framedrop(sh_video->frametime);
         if (in_size > max_framesize)
             max_framesize = in_size;
         current_module = "decode video";


More information about the MPlayer-cvslog mailing list