aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2015-05-11 20:11:03 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-05-12 15:28:31 +0100
commitd0dce15da34c0e4eee6c683be299de0221db00d3 (patch)
tree9667fe0c3c787491366518303bb122be59922d6c
parentda5c6a97bbfe34d4b30a89e72150dd400299ddce (diff)
downloadffmpeg-d0dce15da34c0e4eee6c683be299de0221db00d3.tar.gz
quickdraw: Make the palette opaque
Additional overflow fix by Michael Niedermayer <michaelni@gmx.at>. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
-rw-r--r--libavcodec/qdrw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/qdrw.c b/libavcodec/qdrw.c
index 1eb2a76691..f7a437711b 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;
}