comparison cyuv.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 c8c591fe26f8
children f99e40a7155b
comparison
equal deleted inserted replaced
4800:d6b2ddac2c5e 4801:66ef3690d108
56 /* width needs to be divisible by 4 for this codec to work */ 56 /* width needs to be divisible by 4 for this codec to work */
57 if (s->width & 0x3) 57 if (s->width & 0x3)
58 return -1; 58 return -1;
59 s->height = avctx->height; 59 s->height = avctx->height;
60 avctx->pix_fmt = PIX_FMT_YUV411P; 60 avctx->pix_fmt = PIX_FMT_YUV411P;
61 avctx->has_b_frames = 0;
62 61
63 return 0; 62 return 0;
64 } 63 }
65 64
66 static int cyuv_decode_frame(AVCodecContext *avctx, 65 static int cyuv_decode_frame(AVCodecContext *avctx,