OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d493170
)
Make CDXL palette opaque.
author
Carl Eugen Hoyos
<cehoyos@ag.or.at>
Fri, 17 Feb 2012 20:33:14 +0000
(21:33 +0100)
committer
Carl Eugen Hoyos
<cehoyos@ag.or.at>
Fri, 17 Feb 2012 20:33:14 +0000
(21:33 +0100)
libavcodec/cdxl.c
patch
|
blob
|
history
diff --git
a/libavcodec/cdxl.c
b/libavcodec/cdxl.c
index
a53a001
..
8c9bea9
100644
(file)
--- a/
libavcodec/cdxl.c
+++ b/
libavcodec/cdxl.c
@@
-56,7
+56,7
@@
static void import_palette(CDXLVideoContext *c, uint32_t *new_palette)
unsigned r = ((rgb >> 8) & 0xF) * 0x11;
unsigned g = ((rgb >> 4) & 0xF) * 0x11;
unsigned b = (rgb & 0xF) * 0x11;
- AV_WN32(&new_palette[i], (r << 16) | (g << 8) | b);
+ AV_WN32(&new_palette[i], (
0xFFU << 24) | (
r << 16) | (g << 8) | b);
}
}