Mercurial > libavcodec.hg
comparison xan.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 | 231daf8387b1 |
children | 777f250df232 |
comparison
equal
deleted
inserted
replaced
4800:d6b2ddac2c5e | 4801:66ef3690d108 |
---|---|
68 av_log(avctx, AV_LOG_ERROR, " WC3 Xan video: palette expected.\n"); | 68 av_log(avctx, AV_LOG_ERROR, " WC3 Xan video: palette expected.\n"); |
69 return -1; | 69 return -1; |
70 } | 70 } |
71 | 71 |
72 avctx->pix_fmt = PIX_FMT_PAL8; | 72 avctx->pix_fmt = PIX_FMT_PAL8; |
73 avctx->has_b_frames = 0; | |
74 | 73 |
75 if(avcodec_check_dimensions(avctx, avctx->width, avctx->height)) | 74 if(avcodec_check_dimensions(avctx, avctx->width, avctx->height)) |
76 return -1; | 75 return -1; |
77 | 76 |
78 s->buffer1_size = avctx->width * avctx->height; | 77 s->buffer1_size = avctx->width * avctx->height; |