aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/yop.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-11-12 20:48:39 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-11-12 20:48:39 +0100
commitac0042f55f058a228a726f8e393884115f1daa99 (patch)
tree2fbe8b28e4762f0f0a380d97724a7bd18df7c749 /libavcodec/yop.c
parent0e8da94c2fec8fa5c66ee8df6e516913271c7863 (diff)
downloadffmpeg-ac0042f55f058a228a726f8e393884115f1daa99.tar.gz
Set Psygnosis YOP palette opaque.
Diffstat (limited to 'libavcodec/yop.c')
-rw-r--r--libavcodec/yop.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/yop.c b/libavcodec/yop.c
index 87a91f28d7..597fe891ee 100644
--- a/libavcodec/yop.c
+++ b/libavcodec/yop.c
@@ -217,10 +217,12 @@ static int yop_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
firstcolor = s->first_color[is_odd_frame];
palette = (uint32_t *)s->frame.data[1];
- for (i = 0; i < s->num_pal_colors; i++, s->srcptr += 3)
+ for (i = 0; i < s->num_pal_colors; i++, s->srcptr += 3) {
palette[i + firstcolor] = (s->srcptr[0] << 18) |
(s->srcptr[1] << 10) |
(s->srcptr[2] << 2);
+ palette[i + firstcolor] |= 0xFF << 24;
+ }
s->frame.palette_has_changed = 1;