... | ... |
@@ -135,7 +135,7 @@ static int sunrast_decode_frame(AVCodecContext *avctx, void *data, |
135 | 135 |
|
136 | 136 |
ptr = p->data[1]; |
137 | 137 |
for (x=0; x<len; x++, ptr+=4) |
138 |
- *(uint32_t *)ptr = (buf[x]<<16) + (buf[len+x]<<8) + buf[len+len+x]; |
|
138 |
+ *(uint32_t *)ptr = (0xFF<<24) + (buf[x]<<16) + (buf[len+x]<<8) + buf[len+len+x]; |
|
139 | 139 |
} |
140 | 140 |
|
141 | 141 |
buf += maplength; |