diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-11-12 20:17:56 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-11-12 20:17:56 +0100 |
commit | 58c3538839a9d174dd67e7d6f08f38f165137610 (patch) | |
tree | 895534fd0665d5c16abc4bfe50c64d056c9ecef4 /libavcodec | |
parent | 7cd906c1797a98de591aa095b619e0b12c282c2f (diff) | |
download | ffmpeg-58c3538839a9d174dd67e7d6f08f38f165137610.tar.gz |
Set Sun Rasterfile palette opaque.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/sunrast.c | 2 |
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; |