Index: mencoder.c
===================================================================
RCS file: /cvsroot/mplayer/main/mencoder.c,v
retrieving revision 1.354
diff -u -r1.354 mencoder.c
--- mencoder.c	28 Apr 2006 23:06:35 -0000	1.354
+++ mencoder.c	8 May 2006 13:31:29 -0000
@@ -1316,7 +1316,7 @@
 default:
     // decode_video will callback down to ve_*.c encoders, through the video filters
     blit_frame=decode_video(sh_video,frame_data.start,frame_data.in_size,
-      skip_flag>0 && (!sh_video->vfilter || ((vf_instance_t *)sh_video->vfilter)->control(sh_video->vfilter, VFCTRL_SKIP_NEXT_FRAME, 0) != CONTROL_TRUE), mux_v->timer);
+			    skip_flag>0 && (!sh_video->vfilter || ((vf_instance_t *)sh_video->vfilter)->control(sh_video->vfilter, VFCTRL_SKIP_NEXT_FRAME, 0) != CONTROL_TRUE), mux_v->timer+(float)mux_v->encoder_delay*mux_v->h.dwScale/mux_v->h.dwRate);
     
     if (sh_video->vf_inited < 0) mencoder_exit(1, NULL);
     
