Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-11-12 23:17:56 +0400
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-11-12 23:17:56 +0400
commit58c3538839a9d174dd67e7d6f08f38f165137610 (patch)
tree895534fd0665d5c16abc4bfe50c64d056c9ecef4 /libavcodec/sunrast.c
parent7cd906c1797a98de591aa095b619e0b12c282c2f (diff)
Set Sun Rasterfile palette opaque.
Diffstat (limited to 'libavcodec/sunrast.c')
-rw-r--r--libavcodec/sunrast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/sunrast.c b/libavcodec/sunrast.c
index 36dfa98293..0f637399ef 100644
--- a/libavcodec/sunrast.c
+++ b/libavcodec/sunrast.c
@@ -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;