aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-11-12 20:46:58 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-11-12 20:46:58 +0100
commit7b40f46fe274b73331c8eb8d6f25138d81b8db9e (patch)
treeb856224d8981dd4b2b66e1d1edf5b9610caaa751 /libavcodec
parent1d38c746fdcc9f604644a18fa776a63de1a9c27e (diff)
downloadffmpeg-7b40f46fe274b73331c8eb8d6f25138d81b8db9e.tar.gz
Set AVS palette opaque.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/avs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/avs.c b/libavcodec/avs.c
index cf965b38a0..4179821bc0 100644
--- a/libavcodec/avs.c
+++ b/libavcodec/avs.c
@@ -85,8 +85,10 @@ avs_decode_frame(AVCodecContext * avctx,
if (first >= 256 || last > 256 || buf_end - buf < 4 + 4 + 3 * (last - first))
return AVERROR_INVALIDDATA;
buf += 4;
- for (i=first; i<last; i++, buf+=3)
+ for (i=first; i<last; i++, buf+=3) {
pal[i] = (buf[0] << 18) | (buf[1] << 10) | (buf[2] << 2);
+ pal[i] |= 0xFF << 24;
+ }
sub_type = buf[0];
type = buf[1];