Set Sun Rasterfile palette opaque.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Sat, 12 Nov 2011 19:17:56 +0000 (20:17 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Sat, 12 Nov 2011 19:17:56 +0000 (20:17 +0100)
libavcodec/sunrast.c

index 36dfa98..0f63739 100644 (file)
@@ -135,7 +135,7 @@ static int sunrast_decode_frame(AVCodecContext *avctx, void *data,
 
         ptr = p->data[1];
         for (x=0; x<len; x++, ptr+=4)
-            *(uint32_t *)ptr = (buf[x]<<16) + (buf[len+x]<<8) + buf[len+len+x];
+            *(uint32_t *)ptr = (0xFF<<24) + (buf[x]<<16) + (buf[len+x]<<8) + buf[len+len+x];
     }
 
     buf += maplength;