Mercurial > libavcodec.hg
changeset 10580:2e01212efb32 libavcodec
10l, pix_fmt should be set by the motionpixels decoder, not by the demuxer.
This fixes playback when lavf and lavc are less tightly couples as in e.g. MPlayer.
author | reimar |
---|---|
date | Thu, 26 Nov 2009 21:15:06 +0000 |
parents | dacdec913c5b |
children | 2980d9efc542 |
files | motionpixels.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/motionpixels.c Thu Nov 26 21:04:33 2009 +0000 +++ b/motionpixels.c Thu Nov 26 21:15:06 2009 +0000 @@ -112,6 +112,7 @@ mp->offset_bits_len = av_log2(avctx->width * avctx->height) + 1; mp->vpt = av_mallocz(avctx->height * sizeof(YuvPixel)); mp->hpt = av_mallocz(avctx->height * avctx->width / 16 * sizeof(YuvPixel)); + avctx->pix_fmt = PIX_FMT_RGB555; return 0; }