changeset 36323:335349ca2137

Do not increment frame drop count when at EOF.
author reimar
date Mon, 12 Aug 2013 19:37:33 +0000
parents d649e84ea8d5
children 95ea180551c0
files mplayer.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sun Aug 11 18:28:58 2013 +0000
+++ b/mplayer.c	Mon Aug 12 19:37:33 2013 +0000
@@ -1788,7 +1788,7 @@
     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 @@
             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";