[Mplayer-cvslog] CVS: main mencoder.c,1.111,1.112

Richard Felker CVS rfelker at mplayer.dev.hu
Wed Apr 10 14:43:35 CEST 2002


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv2834

Modified Files:
	mencoder.c 
Log Message:
Dirty hack to fix mencoder until someone does all the new filter/vo stuff right :)


Index: mencoder.c
===================================================================
RCS file: /cvsroot/mplayer/main/mencoder.c,v
retrieving revision 1.111
retrieving revision 1.112
diff -u -r1.111 -r1.112
--- mencoder.c	7 Apr 2002 02:12:14 -0000	1.111
+++ mencoder.c	10 Apr 2002 12:43:26 -0000	1.112
@@ -672,6 +672,12 @@
 if(out_video_codec>1){
 
 sh_video->vfilter=vf_open_filter(NULL,"vo",&video_out);
+// Dirty hack to fix mencoder until someone does all the new filter/vo stuff right :)
+if (out_video_codec == VCODEC_LIBAVCODEC || out_video_codec == VCODEC_DIVX4)
+{
+    sh_video->vfilter=vf_open_filter(sh_video->vfilter, "format", "yv12");
+    out_fmt = IMGFMT_YV12;
+}
 sh_video->vfilter=append_filters(sh_video->vfilter);
 
 mp_msg(MSGT_CPLAYER,MSGL_INFO,"==========================================================================\n");




More information about the MPlayer-cvslog mailing list