projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5049e2
)
Colours except background should not be transparent
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sun, 5 Aug 2007 12:11:24 +0000
(12:11 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sun, 5 Aug 2007 12:11:24 +0000
(12:11 +0000)
Originally committed as revision 9940 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/xsubdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/xsubdec.c
b/libavcodec/xsubdec.c
index ad1f55ef692828a824d54f368a728e846a6ab241..134eb9ab03edb391446219956123fc12203ff8fa 100644
(file)
--- a/
libavcodec/xsubdec.c
+++ b/
libavcodec/xsubdec.c
@@
-74,6
+74,9
@@
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
// read palette
for (i = 0; i < sub->rects[0].nb_colors; i++)
sub->rects[0].rgba_palette[i] = bytestream_get_be24(&buf);
+ // make all except background (first entry) non-transparent
+ for (i = 1; i < sub->rects[0].nb_colors; i++)
+ sub->rects[0].rgba_palette[i] |= 0xff000000;
// process RLE-compressed data
rlelen = FFMIN(rlelen, buf_end - buf);