[MPlayer-dev-eng] [PATCH] ve_lavc: add VP8 fourcc

James Zern jzern at google.com
Sat Mar 5 01:22:13 CET 2011


Avoids the need for -ffourcc VP80 when using mencoder.
-------------- next part --------------
Index: libmpcodecs/ve_lavc.c
===================================================================
--- libmpcodecs/ve_lavc.c	(revision 33025)
+++ libmpcodecs/ve_lavc.c	(working copy)
@@ -1028,6 +1028,8 @@ static int vf_open(vf_instance_t *vf, ch
 	mux_v->bih->biCompression = mmioFOURCC('d', 'r', 'a', 'c');
     else if (!strcasecmp(lavc_param_vcodec, "libdirac"))
 	mux_v->bih->biCompression = mmioFOURCC('d', 'r', 'a', 'c');
+    else if (!strcasecmp(lavc_param_vcodec, "libvpx"))
+	mux_v->bih->biCompression = mmioFOURCC('V', 'P', '8', '0');
     else
 	mux_v->bih->biCompression = mmioFOURCC(lavc_param_vcodec[0],
 		lavc_param_vcodec[1], lavc_param_vcodec[2], lavc_param_vcodec[3]); /* FIXME!!! */


More information about the MPlayer-dev-eng mailing list