Mercurial > libavcodec.hg
diff cscd.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 | ce643a22f049 |
children | b3ee9a1526b0 |
line wrap: on
line diff
--- a/cscd.c Sat Apr 07 16:03:23 2007 +0000 +++ b/cscd.c Sat Apr 07 17:37:30 2007 +0000 @@ -218,7 +218,6 @@ if (avcodec_check_dimensions(avctx, avctx->height, avctx->width) < 0) { return 1; } - avctx->has_b_frames = 0; switch (avctx->bits_per_sample) { case 16: avctx->pix_fmt = PIX_FMT_RGB555; break; case 24: avctx->pix_fmt = PIX_FMT_BGR24; break;