Mercurial > libavcodec.hg
comparison cscd.c @ 4801:66ef3690d108 libavcodec
Remove superfluous setting of has_b_frames in codecs without B-frames.
patch by Nicholas Tung, ntung ntung com
author | diego |
---|---|
date | Sat, 07 Apr 2007 17:37:30 +0000 |
parents | ce643a22f049 |
children | b3ee9a1526b0 |
comparison
equal
deleted
inserted
replaced
4800:d6b2ddac2c5e | 4801:66ef3690d108 |
---|---|
216 static int decode_init(AVCodecContext *avctx) { | 216 static int decode_init(AVCodecContext *avctx) { |
217 CamStudioContext *c = (CamStudioContext *)avctx->priv_data; | 217 CamStudioContext *c = (CamStudioContext *)avctx->priv_data; |
218 if (avcodec_check_dimensions(avctx, avctx->height, avctx->width) < 0) { | 218 if (avcodec_check_dimensions(avctx, avctx->height, avctx->width) < 0) { |
219 return 1; | 219 return 1; |
220 } | 220 } |
221 avctx->has_b_frames = 0; | |
222 switch (avctx->bits_per_sample) { | 221 switch (avctx->bits_per_sample) { |
223 case 16: avctx->pix_fmt = PIX_FMT_RGB555; break; | 222 case 16: avctx->pix_fmt = PIX_FMT_RGB555; break; |
224 case 24: avctx->pix_fmt = PIX_FMT_BGR24; break; | 223 case 24: avctx->pix_fmt = PIX_FMT_BGR24; break; |
225 case 32: avctx->pix_fmt = PIX_FMT_RGB32; break; | 224 case 32: avctx->pix_fmt = PIX_FMT_RGB32; break; |
226 default: | 225 default: |