# HG changeset patch # User corey # Date 1179454166 0 # Node ID 5ea7c5d20f09f54ba8fdb3e14447b0a2d5bc97b5 # Parent 32116ccf8c41d2cc72c90045117a0acb818981f0 PIX_FMT_NONE is -1, not 0, so if stream->imgfmt is 0, ctx->pix_fmt gets set incorrectly to PIX_FMT_YUV420P diff -r 32116ccf8c41 -r 5ea7c5d20f09 libmpdemux/muxer_lavf.c --- a/libmpdemux/muxer_lavf.c Thu May 17 23:20:58 2007 +0000 +++ b/libmpdemux/muxer_lavf.c Fri May 18 02:09:26 2007 +0000 @@ -240,6 +240,7 @@ 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;