[FFmpeg-cvslog] Set Smacker 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:16:43 2011 +0100| [7cd906c1797a98de591aa095b619e0b12c282c2f] | committer: Carl Eugen Hoyos
Set Smacker palette opaque.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7cd906c1797a98de591aa095b619e0b12c282c2f
---
libavcodec/smacker.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/smacker.c b/libavcodec/smacker.c
index 8345b7f..19bfab4 100644
--- a/libavcodec/smacker.c
+++ b/libavcodec/smacker.c
@@ -386,7 +386,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac
buf++;
for(i = 0; i < 256; i++)
- *pal++ = bytestream_get_be24(&buf);
+ *pal++ = 0xFF << 24 | bytestream_get_be24(&buf);
buf_size -= 769;
last_reset(smk->mmap_tbl, smk->mmap_last);
More information about the ffmpeg-cvslog
mailing list