[FFmpeg-cvslog] quickdraw: Make the palette opaque
Carl Eugen Hoyos
git at videolan.org
Wed May 13 20:47:14 CEST 2015
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Mon May 11 20:11:03 2015 +0100| [d0dce15da34c0e4eee6c683be299de0221db00d3] | committer: Vittorio Giovara
quickdraw: Make the palette opaque
Additional overflow fix by Michael Niedermayer <michaelni at gmx.at>.
Signed-off-by: Vittorio Giovara <vittorio.giovara at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d0dce15da34c0e4eee6c683be299de0221db00d3
---
libavcodec/qdrw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/qdrw.c b/libavcodec/qdrw.c
index 1eb2a76..f7a4377 100644
--- a/libavcodec/qdrw.c
+++ b/libavcodec/qdrw.c
@@ -61,7 +61,7 @@ static int parse_palette(AVCodecContext *avctx, GetByteContext *gbc,
bytestream2_skip(gbc, 1);
b = bytestream2_get_byte(gbc);
bytestream2_skip(gbc, 1);
- pal[idx] = (r << 16) | (g << 8) | b;
+ pal[idx] = (0xFFU << 24) | (r << 16) | (g << 8) | b;
}
return 0;
}
More information about the ffmpeg-cvslog
mailing list