Mercurial > mplayer.hg
diff mencoder.c @ 13593:e2dca00374f2
add new control message, that is send after end of stream, to flush all remaining frames in the video system
required by xvid4 encoder.
author | iive |
---|---|
date | Sat, 09 Oct 2004 13:07:18 +0000 |
parents | 606d90e03a2f |
children | e632b43f0598 |
line wrap: on
line diff
--- a/mencoder.c Sat Oct 09 08:11:16 2004 +0000 +++ b/mencoder.c Sat Oct 09 13:07:18 2004 +0000 @@ -1573,6 +1573,14 @@ } // 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){