summaryrefslogtreecommitdiff
path: root/libavcodec/cdgraphics.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-11-12 20:01:50 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-11-12 20:01:50 +0100
commit973f3d3e0eef351de730c9cff017ab8c20bf8bd5 (patch)
treed46540dbc83494fb49a62b8e7a85b0a788ad453f /libavcodec/cdgraphics.c
parent5be097c70389391e6eb1a2662a864e6ad34e3865 (diff)
downloadffmpeg-973f3d3e0eef351de730c9cff017ab8c20bf8bd5.tar.gz
Set CD Graphics palette opaque.
Diffstat (limited to 'libavcodec/cdgraphics.c')
-rw-r--r--libavcodec/cdgraphics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cdgraphics.c b/libavcodec/cdgraphics.c
index f7d9e5f7e3..b87ca1d2c3 100644
--- a/libavcodec/cdgraphics.c
+++ b/libavcodec/cdgraphics.c
@@ -126,7 +126,7 @@ static void cdg_load_palette(CDGraphicsContext *cc, uint8_t *data, int low)
r = ((color >> 8) & 0x000F) * 17;
g = ((color >> 4) & 0x000F) * 17;
b = ((color ) & 0x000F) * 17;
- palette[i + array_offset] = r << 16 | g << 8 | b;
+ palette[i + array_offset] = 0xFF << 24 | r << 16 | g << 8 | b;
}
cc->frame.palette_has_changed = 1;
}