Mercurial > libavcodec.hg
comparison smc.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 |
---|---|
434 { | 434 { |
435 SmcContext *s = (SmcContext *)avctx->priv_data; | 435 SmcContext *s = (SmcContext *)avctx->priv_data; |
436 | 436 |
437 s->avctx = avctx; | 437 s->avctx = avctx; |
438 avctx->pix_fmt = PIX_FMT_PAL8; | 438 avctx->pix_fmt = PIX_FMT_PAL8; |
439 avctx->has_b_frames = 0; | |
440 dsputil_init(&s->dsp, avctx); | 439 dsputil_init(&s->dsp, avctx); |
441 | 440 |
442 s->frame.data[0] = NULL; | 441 s->frame.data[0] = NULL; |
443 | 442 |
444 return 0; | 443 return 0; |