changeset 1250:76263a48a57b

libavcodec zero frame DivX flickering fixed
author arpi
date Sat, 30 Jun 2001 22:17:14 +0000
parents 07c2703b9b44
children ed006a130ad3
files mplayer.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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!
 
     }