]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/c93.c
Fix compilation without HAVE_AVX, HAVE_YASM etc.
[ffmpeg] / libavcodec / c93.c
index 1f4ed1fdf0b9bfc7465ef3bfd09f7d19bcd1f418..ad2dc0a7bfda72502ec56745a932693d6adbf7b6 100644 (file)
@@ -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])