comparison tscc.c @ 4494:ce643a22f049 libavcodec

Replace deprecated PIX_FMT names by the newer variants.
author diego
date Wed, 07 Feb 2007 01:48:09 +0000
parents 05e932ddaaa9
children 59f4fb490fa7
comparison
equal deleted inserted replaced
4493:e78c415815f3 4494:ce643a22f049
281 case 8: avctx->pix_fmt = PIX_FMT_PAL8; break; 281 case 8: avctx->pix_fmt = PIX_FMT_PAL8; break;
282 case 16: avctx->pix_fmt = PIX_FMT_RGB555; break; 282 case 16: avctx->pix_fmt = PIX_FMT_RGB555; break;
283 case 24: 283 case 24:
284 avctx->pix_fmt = PIX_FMT_BGR24; 284 avctx->pix_fmt = PIX_FMT_BGR24;
285 break; 285 break;
286 case 32: avctx->pix_fmt = PIX_FMT_RGBA32; break; 286 case 32: avctx->pix_fmt = PIX_FMT_RGB32; break;
287 default: av_log(avctx, AV_LOG_ERROR, "Camtasia error: unknown depth %i bpp\n", avctx->bits_per_sample); 287 default: av_log(avctx, AV_LOG_ERROR, "Camtasia error: unknown depth %i bpp\n", avctx->bits_per_sample);
288 return -1; 288 return -1;
289 } 289 }
290 c->bpp = avctx->bits_per_sample; 290 c->bpp = avctx->bits_per_sample;
291 c->decomp_size = (avctx->width * c->bpp + (avctx->width + 254) / 255 + 2) * avctx->height + 2;//RLE in the 'best' case 291 c->decomp_size = (avctx->width * c->bpp + (avctx->width + 254) / 255 + 2) * avctx->height + 2;//RLE in the 'best' case