X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fmmvideo.c;h=ff7d1007928cc1ddc3db06a3c969ba405c33c46a;hb=a129622390fca8a298c3b121f42b2d15910b9b22;hp=0f30e9d35ec02e0eace4f5f602a4ac124da3329c;hpb=d8cae42d72092501be880348ae0c223d2ea220a2;p=ffmpeg diff --git a/libavcodec/mmvideo.c b/libavcodec/mmvideo.c index 0f30e9d35ec..ff7d1007928 100644 --- a/libavcodec/mmvideo.c +++ b/libavcodec/mmvideo.c @@ -59,7 +59,7 @@ static av_cold int mm_decode_init(AVCodecContext *avctx) avctx->pix_fmt = PIX_FMT_PAL8; avcodec_get_frame_defaults(&s->frame); - s->frame.reference = 1; + s->frame.reference = 3; return 0; } @@ -69,7 +69,7 @@ static void mm_decode_pal(MmContext *s, const uint8_t *buf, const uint8_t *buf_e int i; buf += 4; for (i=0; i<128 && buf+2palette[i] = AV_RB24(buf); + s->palette[i] = 0xFF << 24 | AV_RB24(buf); s->palette[i+128] = s->palette[i]<<2; buf += 3; }