Mercurial > libavcodec.hg
comparison dsicinav.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 |
---|---|
91 CinVideoContext *cin = (CinVideoContext *)avctx->priv_data; | 91 CinVideoContext *cin = (CinVideoContext *)avctx->priv_data; |
92 unsigned int i; | 92 unsigned int i; |
93 | 93 |
94 cin->avctx = avctx; | 94 cin->avctx = avctx; |
95 avctx->pix_fmt = PIX_FMT_PAL8; | 95 avctx->pix_fmt = PIX_FMT_PAL8; |
96 avctx->has_b_frames = 0; | |
97 | 96 |
98 cin->frame.data[0] = NULL; | 97 cin->frame.data[0] = NULL; |
99 | 98 |
100 cin->bitmap_size = avctx->width * avctx->height; | 99 cin->bitmap_size = avctx->width * avctx->height; |
101 for (i = 0; i < 3; ++i) { | 100 for (i = 0; i < 3; ++i) { |