summaryrefslogtreecommitdiffstats
path: root/mencoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'mencoder.c')
-rw-r--r--mencoder.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mencoder.c b/mencoder.c
index 5cdc5104fc..d1cde38f53 100644
--- a/mencoder.c
+++ b/mencoder.c
@@ -1573,6 +1573,14 @@ if(sh_audio && !demuxer2){
} // while(!at_eof)
+/* Emit the remaining frames in the video system */
+/*TODO emit frmaes delayed by decoder lag*/
+ if(sh_video && sh_video->vfilter){
+ mp_msg(MSGT_FIXME, MSGL_FIXME, "\nFlushing video frames\n");
+ ((vf_instance_t *)sh_video->vfilter)->control(sh_video->vfilter,
+ VFCTRL_FLUSH_FRAMES, 0);
+ }
+
#ifdef HAVE_MP3LAME
// fixup CBR mp3 audio header:
if(sh_audio && mux_a->codec==ACODEC_VBRMP3 && !lame_param_vbr){