diff cinepak.c @ 2106:f68c446a5b97 libavcodec

Ignore palette for grayscale files, all my samples are inverted with default qt grayscale palette.
author rtognimp
date Sun, 27 Jun 2004 16:06:15 +0000
parents b293b6c3a1a6
children af90d5dc83f0
line wrap: on
line diff
--- 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 {