[Mplayer-cvslog] CVS: main mplayer.c,1.169,1.170

Arpi of Ize arpi at mplayerhq.banki.hu
Sun Jul 1 00:17:17 CEST 2001


Update of /cvsroot/mplayer/main
In directory mplayerhq:/var/tmp.root/cvs-serv772

Modified Files:
	mplayer.c 
Log Message:
libavcodec zero frame DivX flickering fixed

Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.169
retrieving revision 1.170
diff -u -r1.169 -r1.170
--- mplayer.c	30 Jun 2001 00:16:39 -0000	1.169
+++ mplayer.c	30 Jun 2001 22:17:14 -0000	1.170
@@ -1661,6 +1661,7 @@
   
     float frame_time=1;
     float pts1=d_video->pts;
+    int blit_frame=1;
 
     current_module="decode_video";
     
@@ -1759,6 +1760,7 @@
 
     if(d_video->flags) if(verbose) printf("***keyframe***\n");
 
+    if(in_size<=0) blit_frame=0; else
     if(drop_frame<2){
         int ret = avcodec_decode_video(&lavc_context, &lavc_picture,
 	     &got_picture, start, in_size);
@@ -1952,7 +1954,7 @@
       }
 
         current_module="flip_page";
-        video_out->flip_page();
+        if(blit_frame) video_out->flip_page();
 //        usec_sleep(50000); // test only!
 
     }


_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog



More information about the MPlayer-cvslog mailing list