comparison 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
comparison
equal deleted inserted replaced
2105:b293b6c3a1a6 2106:f68c446a5b97
363 s->avctx = avctx; 363 s->avctx = avctx;
364 s->width = (avctx->width + 3) & ~3; 364 s->width = (avctx->width + 3) & ~3;
365 s->height = (avctx->height + 3) & ~3; 365 s->height = (avctx->height + 3) & ~3;
366 366
367 // check for paletted data 367 // check for paletted data
368 if (avctx->palctrl == NULL) { 368 if ((avctx->palctrl == NULL) || (avctx->bits_per_sample == 40)) {
369 s->palette_video = 0; 369 s->palette_video = 0;
370 avctx->pix_fmt = PIX_FMT_YUV420P; 370 avctx->pix_fmt = PIX_FMT_YUV420P;
371 } else { 371 } else {
372 s->palette_video = 1; 372 s->palette_video = 1;
373 avctx->pix_fmt = PIX_FMT_PAL8; 373 avctx->pix_fmt = PIX_FMT_PAL8;