diff --git a/libavcodec/dsicinav.c b/libavcodec/dsicinav.c
index 53d4f90d2e5fea6780f9331db86877ed846fe579..80c9677de3694b8752df86539425e1f07bdd5d94 100644
--- a/libavcodec/dsicinav.c
+++ b/libavcodec/dsicinav.c
@@ -223,7 +223,7 @@ static int cinvideo_decode_frame(AVCodecContext *avctx,
         if (palette_colors_count > 256)
             return AVERROR_INVALIDDATA;
         for (i = 0; i < palette_colors_count; ++i) {
-            cin->palette[i] = bytestream_get_le24(&buf);
+            cin->palette[i] = 0xFF << 24 | bytestream_get_le24(&buf);
             bitmap_frame_size -= 3;
         }
     } else {