1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-20 23:07:02 +00:00

libavcodec zero frame DivX flickering fixed

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1251 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2001-06-30 22:17:14 +00:00
parent 8c8e80c961
commit 36c3aa7cd4

View File

@ -1661,6 +1661,7 @@ if(1)
float frame_time=1;
float pts1=d_video->pts;
int blit_frame=1;
current_module="decode_video";
@ -1759,6 +1760,7 @@ switch(sh_video->codec->driver){
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 @@ switch(sh_video->codec->driver){
}
current_module="flip_page";
video_out->flip_page();
if(blit_frame) video_out->flip_page();
// usec_sleep(50000); // test only!
}