mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
Ignore palette for grayscale files, all my samples are inverted with
default qt grayscale palette. Originally committed as revision 3264 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
dab1c4c612
commit
f7a7c75c3d
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user