comparison roqvideo.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 365f2fed8461
children f99e40a7155b
comparison
equal deleted inserted replaced
4800:d6b2ddac2c5e 4801:66ef3690d108
409 s->avctx = avctx; 409 s->avctx = avctx;
410 s->first_frame = 1; 410 s->first_frame = 1;
411 s->last_frame = &s->frames[0]; 411 s->last_frame = &s->frames[0];
412 s->current_frame = &s->frames[1]; 412 s->current_frame = &s->frames[1];
413 avctx->pix_fmt = PIX_FMT_YUV420P; 413 avctx->pix_fmt = PIX_FMT_YUV420P;
414 avctx->has_b_frames = 0;
415 dsputil_init(&s->dsp, avctx); 414 dsputil_init(&s->dsp, avctx);
416 415
417 uiclp = uiclip+512; 416 uiclp = uiclip+512;
418 for(i = -512; i < 512; i++) 417 for(i = -512; i < 512; i++)
419 uiclp[i] = (i < 0 ? 0 : (i > 255 ? 255 : i)); 418 uiclp[i] = (i < 0 ? 0 : (i > 255 ? 255 : i));