Commit 1e5a520f authored by rtognimp's avatar rtognimp

Ignore palette for grayscale files, all my samples are inverted with

default qt grayscale palette.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3264 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9ca3eb6a
...@@ -365,7 +365,7 @@ static int cinepak_decode_init(AVCodecContext *avctx) ...@@ -365,7 +365,7 @@ static int cinepak_decode_init(AVCodecContext *avctx)
s->height = (avctx->height + 3) & ~3; s->height = (avctx->height + 3) & ~3;
// check for paletted data // check for paletted data
if (avctx->palctrl == NULL) { if ((avctx->palctrl == NULL) || (avctx->bits_per_sample == 40)) {
s->palette_video = 0; s->palette_video = 0;
avctx->pix_fmt = PIX_FMT_YUV420P; avctx->pix_fmt = PIX_FMT_YUV420P;
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment