[Mplayer-cvslog] CVS: main mencoder.c,1.255,1.256
Ivan Kalvachev CVS
syncmail at mplayerhq.hu
Sat Oct 9 15:07:20 CEST 2004
CVS change done by Ivan Kalvachev CVS
Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv24006
Modified Files:
mencoder.c
Log Message:
add new control message, that is send after end of stream, to flush all remaining frames in the video system
required by xvid4 encoder.
Index: mencoder.c
===================================================================
RCS file: /cvsroot/mplayer/main/mencoder.c,v
retrieving revision 1.255
retrieving revision 1.256
diff -u -r1.255 -r1.256
--- mencoder.c 7 Oct 2004 00:14:22 -0000 1.255
+++ mencoder.c 9 Oct 2004 13:07:17 -0000 1.256
@@ -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){
More information about the MPlayer-cvslog
mailing list