Index: mencoder.c =================================================================== RCS file: /cvsroot/mplayer/main/mencoder.c,v retrieving revision 1.331 diff -u -r1.331 mencoder.c --- mencoder.c 12 Jan 2006 20:04:32 -0000 1.331 +++ mencoder.c 20 Jan 2006 23:56:26 -0000 @@ -1388,7 +1388,11 @@ AV_delay=(a_pts-v_pts); AV_delay-=audio_delay; AV_delay /= playback_speed; - AV_delay-=mux_a->timer-(mux_v->timer-(v_timer_corr+v_pts_corr)); + /* Commenting the following line seems to fix B-frame induced video delay, + * but I don't know if it causes other problems. + * -Corey */ + /* AV_delay-=mux_a->timer-(mux_v->timer-(v_timer_corr+v_pts_corr)); */ + // compensate input video timer by av: x=AV_delay*0.1f; if(x<-max_pts_correction) x=-max_pts_correction; else