[FFmpeg-cvslog] Set Sun Rasterfile palette opaque.
Carl Eugen Hoyos
git at videolan.org
Sat Nov 12 20:57:03 CET 2011
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sat Nov 12 20:17:56 2011 +0100| [58c3538839a9d174dd67e7d6f08f38f165137610] | committer: Carl Eugen Hoyos
Set Sun Rasterfile palette opaque.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=58c3538839a9d174dd67e7d6f08f38f165137610
---
libavcodec/sunrast.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/sunrast.c b/libavcodec/sunrast.c
index 36dfa98..0f63739 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;
More information about the ffmpeg-cvslog
mailing list