[MPlayer-cvslog] r23338 - trunk/libmpdemux/muxer_lavf.c

corey subversion at mplayerhq.hu
Fri May 18 04:09:27 CEST 2007


Author: corey
Date: Fri May 18 04:09:26 2007
New Revision: 23338

Log:
PIX_FMT_NONE is -1, not 0, so if stream->imgfmt is 0, ctx->pix_fmt gets
set incorrectly to PIX_FMT_YUV420P


Modified:
   trunk/libmpdemux/muxer_lavf.c

Modified: trunk/libmpdemux/muxer_lavf.c
==============================================================================
--- trunk/libmpdemux/muxer_lavf.c	(original)
+++ trunk/libmpdemux/muxer_lavf.c	Fri May 18 04:09:26 2007
@@ -240,6 +240,7 @@ static void fix_parameters(muxer_stream_
                 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);
+		if (stream->imgfmt)
 		ctx->pix_fmt = imgfmt2pixfmt(stream->imgfmt);
 		ctx->width = stream->bih->biWidth;
 		ctx->height = stream->bih->biHeight;



More information about the MPlayer-cvslog mailing list