diff mplayer.c @ 1250:76263a48a57b

libavcodec zero frame DivX flickering fixed
author arpi
date Sat, 30 Jun 2001 22:17:14 +0000
parents 3f7f48067d3b
children 94f2853ec6f4
line wrap: on
line diff
--- a/mplayer.c	Sat Jun 30 07:02:28 2001 +0000
+++ b/mplayer.c	Sat Jun 30 22:17:14 2001 +0000
@@ -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!
 
     }