Mercurial > libavcodec.hg
comparison vmdav.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 | a96d905dcbaa |
children | b3ee9a1526b0 |
comparison
equal
deleted
inserted
replaced
4800:d6b2ddac2c5e | 4801:66ef3690d108 |
---|---|
326 unsigned char *vmd_header; | 326 unsigned char *vmd_header; |
327 unsigned char *raw_palette; | 327 unsigned char *raw_palette; |
328 | 328 |
329 s->avctx = avctx; | 329 s->avctx = avctx; |
330 avctx->pix_fmt = PIX_FMT_PAL8; | 330 avctx->pix_fmt = PIX_FMT_PAL8; |
331 avctx->has_b_frames = 0; | |
332 dsputil_init(&s->dsp, avctx); | 331 dsputil_init(&s->dsp, avctx); |
333 | 332 |
334 /* make sure the VMD header made it */ | 333 /* make sure the VMD header made it */ |
335 if (s->avctx->extradata_size != VMD_HEADER_SIZE) { | 334 if (s->avctx->extradata_size != VMD_HEADER_SIZE) { |
336 av_log(s->avctx, AV_LOG_ERROR, "VMD video: expected extradata size of %d\n", | 335 av_log(s->avctx, AV_LOG_ERROR, "VMD video: expected extradata size of %d\n", |