# HG changeset patch # User reimar # Date 1259270106 0 # Node ID 2e01212efb3260a9ad6f318c4c5c86495c956760 # Parent dacdec913c5b786ddf86996f11c2ed3252f39d68 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. diff -r dacdec913c5b -r 2e01212efb32 motionpixels.c --- 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; }