[MPlayer-dev-eng] [PATCH] support -ffourcc with -of lavf

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Sun Jan 7 21:48:53 CET 2007


Hello,
Does attached patch look okay to you?

Greetings,
Reimar Döffinger
-------------- next part --------------
Index: libmpdemux/muxer_lavf.c
===================================================================
--- libmpdemux/muxer_lavf.c	(revision 21853)
+++ libmpdemux/muxer_lavf.c	(working copy)
@@ -191,6 +191,7 @@
 	return stream;
 }
 
+extern char *force_fourcc;
 
 static void fix_parameters(muxer_stream_t *stream)
 {
@@ -239,7 +240,7 @@
 	else if(stream->type == MUXER_TYPE_VIDEO)
 	{
 		ctx->codec_id = codec_get_bmp_id(stream->bih->biCompression);
-                if(ctx->codec_id <= 0)
+                if(ctx->codec_id <= 0 || force_fourcc)
                     ctx->codec_tag= stream->bih->biCompression;
 		mp_msg(MSGT_MUXER, MSGL_INFO, "VIDEO CODEC ID: %d\n", ctx->codec_id);
 		ctx->width = stream->bih->biWidth;


More information about the MPlayer-dev-eng mailing list