Mercurial > mplayer.hg
changeset 23320:5ea7c5d20f09
PIX_FMT_NONE is -1, not 0, so if stream->imgfmt is 0, ctx->pix_fmt gets
set incorrectly to PIX_FMT_YUV420P
author | corey |
---|---|
date | Fri, 18 May 2007 02:09:26 +0000 |
parents | 32116ccf8c41 |
children | ab8f2f9afd51 |
files | libmpdemux/muxer_lavf.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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;