git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5be097c
)
Set CD Graphics palette opaque.
author
Carl Eugen Hoyos
<cehoyos@ag.or.at>
Sat, 12 Nov 2011 19:01:50 +0000
(20:01 +0100)
committer
Carl Eugen Hoyos
<cehoyos@ag.or.at>
Sat, 12 Nov 2011 19:01:50 +0000
(20:01 +0100)
libavcodec/cdgraphics.c
patch
|
blob
|
history
diff --git
a/libavcodec/cdgraphics.c
b/libavcodec/cdgraphics.c
index
f7d9e5f
..
b87ca1d
100644
(file)
--- 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;
}