Mercurial > libavcodec.hg
comparison smacker.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 | 86a2dfcc5eef |
children | b3ee9a1526b0 |
comparison
equal
deleted
inserted
replaced
4800:d6b2ddac2c5e | 4801:66ef3690d108 |
---|---|
516 static int decode_init(AVCodecContext *avctx) | 516 static int decode_init(AVCodecContext *avctx) |
517 { | 517 { |
518 SmackVContext * const c = (SmackVContext *)avctx->priv_data; | 518 SmackVContext * const c = (SmackVContext *)avctx->priv_data; |
519 | 519 |
520 c->avctx = avctx; | 520 c->avctx = avctx; |
521 avctx->has_b_frames = 0; | |
522 | 521 |
523 c->pic.data[0] = NULL; | 522 c->pic.data[0] = NULL; |
524 | 523 |
525 if (avcodec_check_dimensions(avctx, avctx->width, avctx->height) < 0) { | 524 if (avcodec_check_dimensions(avctx, avctx->width, avctx->height) < 0) { |
526 return 1; | 525 return 1; |