summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorcorey <corey@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-05-18 02:09:26 +0000
committercorey <corey@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-05-18 02:09:26 +0000
commitd26e1dd55f6443d00547d4c81ce60da1cd22c6f5 (patch)
treeaf93ecacdb155d669bc696dbd70ac77fd040990b /libmpdemux
parent9fcf86dcae39d86e2a5323baecd8720af51e521b (diff)
downloadmpv-d26e1dd55f6443d00547d4c81ce60da1cd22c6f5.tar.bz2
mpv-d26e1dd55f6443d00547d4c81ce60da1cd22c6f5.tar.xz
PIX_FMT_NONE is -1, not 0, so if stream->imgfmt is 0, ctx->pix_fmt gets
set incorrectly to PIX_FMT_YUV420P git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23338 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/muxer_lavf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmpdemux/muxer_lavf.c b/libmpdemux/muxer_lavf.c
index 5f309dbc43..44660b30bb 100644
--- a/libmpdemux/muxer_lavf.c
+++ b/libmpdemux/muxer_lavf.c
@@ -240,6 +240,7 @@ static void fix_parameters(muxer_stream_t *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;