# HG changeset patch # User rtognimp # Date 1088352375 0 # Node ID f68c446a5b9718951f112c4cd1bdbcc48d08d90e # Parent b293b6c3a1a6fe4ceb6d78b94a4f29c11f46dce1 Ignore palette for grayscale files, all my samples are inverted with default qt grayscale palette. diff -r b293b6c3a1a6 -r f68c446a5b97 cinepak.c --- a/cinepak.c Sun Jun 27 14:46:02 2004 +0000 +++ b/cinepak.c Sun Jun 27 16:06:15 2004 +0000 @@ -365,7 +365,7 @@ 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 {