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:
7491816
)
mov: Fix grayscale Cinepak in mov
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 20 Sep 2011 04:19:25 +0000
(06:19 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 20 Sep 2011 04:19:25 +0000
(06:19 +0200)
Fixes Ticket165
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mov.c
patch
|
blob
|
history
diff --git
a/libavformat/mov.c
b/libavformat/mov.c
index
5464b78
..
70cd776
100644
(file)
--- a/
libavformat/mov.c
+++ b/
libavformat/mov.c
@@
-1052,6
+1052,9
@@
int ff_mov_read_stsd_entries(MOVContext *c, AVIOContext *pb, int entries)
color_index = 255;
color_dec = 256 / (color_count - 1);
for (j = 0; j < color_count; j++) {
+ if (id == CODEC_ID_CINEPAK){
+ r = g = b = color_count - 1 - color_index;
+ }else
r = g = b = color_index;
sc->palette[j] =
(r << 16) | (g << 8) | (b);