comparison cscd.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 e7dfc2743e26
children 66ef3690d108
comparison
equal deleted inserted replaced
4493:e78c415815f3 4494:ce643a22f049
220 } 220 }
221 avctx->has_b_frames = 0; 221 avctx->has_b_frames = 0;
222 switch (avctx->bits_per_sample) { 222 switch (avctx->bits_per_sample) {
223 case 16: avctx->pix_fmt = PIX_FMT_RGB555; break; 223 case 16: avctx->pix_fmt = PIX_FMT_RGB555; break;
224 case 24: avctx->pix_fmt = PIX_FMT_BGR24; break; 224 case 24: avctx->pix_fmt = PIX_FMT_BGR24; break;
225 case 32: avctx->pix_fmt = PIX_FMT_RGBA32; break; 225 case 32: avctx->pix_fmt = PIX_FMT_RGB32; break;
226 default: 226 default:
227 av_log(avctx, AV_LOG_ERROR, 227 av_log(avctx, AV_LOG_ERROR,
228 "CamStudio codec error: invalid depth %i bpp\n", 228 "CamStudio codec error: invalid depth %i bpp\n",
229 avctx->bits_per_sample); 229 avctx->bits_per_sample);
230 return 1; 230 return 1;