[MPlayer-dev-eng] [PATCH] dropped frames count is increased even when no frames dropped

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Tue Aug 23 20:34:34 CEST 2005


Hi,
the dropped frames count increases even with frame dropping disabled,
and although no frames were actually dropped.
Is this intentional?
If not, is the attached patch acceptable?

Greetings,
Reimar Döffinger
-------------- next part --------------
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.861
diff -u -r1.861 mplayer.c
--- mplayer.c	23 Aug 2005 07:56:29 -0000	1.861
+++ mplayer.c	23 Aug 2005 18:28:12 -0000
@@ -2358,7 +2358,8 @@
 	    float d=delay-sh_audio->delay;
 	    // we should avoid dropping to many frames in sequence unless we
 	    // are too late. and we allow 100ms A-V delay here:
-	    if(d<-dropped_frames*frame_time-0.100 && osd_function != OSD_PAUSE){
+	    if(frame_dropping && d<-dropped_frames*frame_time-0.100 &&
+	       osd_function != OSD_PAUSE){
 		drop_frame=frame_dropping;
 		++drop_frame_cnt;
 		++dropped_frames;


More information about the MPlayer-dev-eng mailing list