projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dab1c4c
)
Ignore palette for grayscale files, all my samples are inverted with
author
Roberto Togni
<r_togni@tiscali.it>
Sun, 27 Jun 2004 16:06:15 +0000
(16:06 +0000)
committer
Roberto Togni
<r_togni@tiscali.it>
Sun, 27 Jun 2004 16:06:15 +0000
(16:06 +0000)
default qt grayscale palette.
Originally committed as revision 3264 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/cinepak.c
patch
|
blob
|
blame
|
history
diff --git
a/libavcodec/cinepak.c
b/libavcodec/cinepak.c
index
df7aa0e
..
3c560fd
100644
(file)
--- a/
libavcodec/cinepak.c
+++ b/
libavcodec/cinepak.c
@@
-365,7
+365,7
@@
static int cinepak_decode_init(AVCodecContext *avctx)
s->height = (avctx->height + 3) & ~3;
// check for paletted data
- if (
avctx->palctrl == NULL
) {
+ if (
(avctx->palctrl == NULL) || (avctx->bits_per_sample == 40)
) {
s->palette_video = 0;
avctx->pix_fmt = PIX_FMT_YUV420P;
} else {