Mercurial > libavcodec.hg
comparison idcinvideo.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 | c8c591fe26f8 |
children | b3ee9a1526b0 |
comparison
equal
deleted
inserted
replaced
4800:d6b2ddac2c5e | 4801:66ef3690d108 |
---|---|
153 int i, j, histogram_index = 0; | 153 int i, j, histogram_index = 0; |
154 unsigned char *histograms; | 154 unsigned char *histograms; |
155 | 155 |
156 s->avctx = avctx; | 156 s->avctx = avctx; |
157 avctx->pix_fmt = PIX_FMT_PAL8; | 157 avctx->pix_fmt = PIX_FMT_PAL8; |
158 avctx->has_b_frames = 0; | |
159 dsputil_init(&s->dsp, avctx); | 158 dsputil_init(&s->dsp, avctx); |
160 | 159 |
161 /* make sure the Huffman tables make it */ | 160 /* make sure the Huffman tables make it */ |
162 if (s->avctx->extradata_size != HUFFMAN_TABLE_SIZE) { | 161 if (s->avctx->extradata_size != HUFFMAN_TABLE_SIZE) { |
163 av_log(s->avctx, AV_LOG_ERROR, " Id CIN video: expected extradata size of %d\n", HUFFMAN_TABLE_SIZE); | 162 av_log(s->avctx, AV_LOG_ERROR, " Id CIN video: expected extradata size of %d\n", HUFFMAN_TABLE_SIZE); |