comparison nuv.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 6a900f539e2c
children b3ee9a1526b0
comparison
equal deleted inserted replaced
4800:d6b2ddac2c5e 4801:66ef3690d108
174 avctx->width = (avctx->width + 1) & ~1; 174 avctx->width = (avctx->width + 1) & ~1;
175 avctx->height = (avctx->height + 1) & ~1; 175 avctx->height = (avctx->height + 1) & ~1;
176 if (avcodec_check_dimensions(avctx, avctx->height, avctx->width) < 0) { 176 if (avcodec_check_dimensions(avctx, avctx->height, avctx->width) < 0) {
177 return 1; 177 return 1;
178 } 178 }
179 avctx->has_b_frames = 0;
180 avctx->pix_fmt = PIX_FMT_YUV420P; 179 avctx->pix_fmt = PIX_FMT_YUV420P;
181 c->pic.data[0] = NULL; 180 c->pic.data[0] = NULL;
182 c->width = avctx->width; 181 c->width = avctx->width;
183 c->height = avctx->height; 182 c->height = avctx->height;
184 c->decomp_size = c->height * c->width * 3 / 2; 183 c->decomp_size = c->height * c->width * 3 / 2;