comparison vqavideo.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 05e932ddaaa9
children b3ee9a1526b0
comparison
equal deleted inserted replaced
4800:d6b2ddac2c5e 4801:66ef3690d108
137 unsigned char *vqa_header; 137 unsigned char *vqa_header;
138 int i, j, codebook_index;; 138 int i, j, codebook_index;;
139 139
140 s->avctx = avctx; 140 s->avctx = avctx;
141 avctx->pix_fmt = PIX_FMT_PAL8; 141 avctx->pix_fmt = PIX_FMT_PAL8;
142 avctx->has_b_frames = 0;
143 dsputil_init(&s->dsp, avctx); 142 dsputil_init(&s->dsp, avctx);
144 143
145 /* make sure the extradata made it */ 144 /* make sure the extradata made it */
146 if (s->avctx->extradata_size != VQA_HEADER_SIZE) { 145 if (s->avctx->extradata_size != VQA_HEADER_SIZE) {
147 av_log(s->avctx, AV_LOG_ERROR, " VQA video: expected extradata size of %d\n", VQA_HEADER_SIZE); 146 av_log(s->avctx, AV_LOG_ERROR, " VQA video: expected extradata size of %d\n", VQA_HEADER_SIZE);