diff options
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -1725,7 +1725,8 @@ if(time_frame>0.001 && !(vo_flags&256)){ if(vo_config_count) video_out->check_events(); current_module="flip_page"; - if(blit_frame && !frame_time_remaining){ + if (!frame_time_remaining) { + if(blit_frame){ unsigned int t2=GetTimer(); double tt; float j; @@ -1744,8 +1745,15 @@ if(time_frame>0.001 && !(vo_flags&256)){ t2=GetTimer()-t2; tt = t2*0.000001f; vout_time_usage+=tt; - } - + } else { + /* + Well, no blitting is needed, but some devices (such as yuv4mpeg) must output frame + otherwise A/V desync will occur. -- Alvieboy + */ + if (vo_config_count) + video_out->control(VOCTRL_DUPLICATE_FRAME, NULL); + } + } //====================== A-V TIMESTAMP CORRECTION: ========================= current_module="av_sync"; |