X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fc93.c;h=ad2dc0a7bfda72502ec56745a932693d6adbf7b6;hb=f41a6c8f3aeb51332bb359038cb504d3fb562a52;hp=1f4ed1fdf0b9bfc7465ef3bfd09f7d19bcd1f418;hpb=d17e7070a099af04a1dc7bc9ddd82f67bfcf9827;p=ffmpeg diff --git a/libavcodec/c93.c b/libavcodec/c93.c index 1f4ed1fdf0b..ad2dc0a7bfd 100644 --- a/libavcodec/c93.c +++ b/libavcodec/c93.c @@ -130,7 +130,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, c93->currentpic ^= 1; - newpic->reference = 1; + newpic->reference = 3; newpic->buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE | FF_BUFFER_HINTS_READABLE; if (avctx->reget_buffer(avctx, newpic)) { @@ -152,7 +152,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, uint32_t *palette = (uint32_t *) newpic->data[1]; const uint8_t *palbuf = buf + buf_size - 768 - 1; for (i = 0; i < 256; i++) { - palette[i] = bytestream_get_be24(&palbuf); + palette[i] = 0xFF << 24 | bytestream_get_be24(&palbuf); } } else { if (oldpic->data[1])