Set Westwood Studios VQA palette opaque.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Sat, 12 Nov 2011 19:23:34 +0000 (20:23 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Sat, 12 Nov 2011 19:23:34 +0000 (20:23 +0100)
libavcodec/vqavideo.c

index 8b57d79..5db8a22 100644 (file)
@@ -402,7 +402,7 @@ static void vqa_decode_chunk(VqaContext *s)
             r = s->buf[cpl0_chunk++] * 4;
             g = s->buf[cpl0_chunk++] * 4;
             b = s->buf[cpl0_chunk++] * 4;
-            s->palette[i] = (r << 16) | (g << 8) | (b);
+            s->palette[i] = 0xFF << 24 | r << 16 | g << 8 | b;
         }
     }