summaryrefslogtreecommitdiffstats
path: root/libavcodec/c93.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-11-12 20:01:05 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-11-12 20:01:05 +0100
commit5be097c70389391e6eb1a2662a864e6ad34e3865 (patch)
treecc9e4dc3b4a98326499fdc441cd1ae8216e4752e /libavcodec/c93.c
parentd6e14e24b007675ff1c45f6e3618845420633d10 (diff)
downloadffmpeg-streaming-5be097c70389391e6eb1a2662a864e6ad34e3865.zip
ffmpeg-streaming-5be097c70389391e6eb1a2662a864e6ad34e3865.tar.gz
Set Interplay C93 palette opaque.
Diffstat (limited to 'libavcodec/c93.c')
-rw-r--r--libavcodec/c93.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/c93.c b/libavcodec/c93.c
index 06ce416..ad2dc0a 100644
--- a/libavcodec/c93.c
+++ b/libavcodec/c93.c
@@ -152,7 +152,7 @@ static int decode_frame(AVCodecContext *avctx, void *data,
uint32_t *palette = (uint32_t *) newpic->data[1];
const uint8_t *palbuf = buf + buf_size - 768 - 1;
for (i = 0; i < 256; i++) {
- palette[i] = bytestream_get_be24(&palbuf);
+ palette[i] = 0xFF << 24 | bytestream_get_be24(&palbuf);
}
} else {
if (oldpic->data[1])
OpenPOWER on IntegriCloud