comparison flicvideo.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 e112ff86e261
children b3ee9a1526b0
comparison
equal deleted inserted replaced
4800:d6b2ddac2c5e 4801:66ef3690d108
83 FlicDecodeContext *s = (FlicDecodeContext *)avctx->priv_data; 83 FlicDecodeContext *s = (FlicDecodeContext *)avctx->priv_data;
84 unsigned char *fli_header = (unsigned char *)avctx->extradata; 84 unsigned char *fli_header = (unsigned char *)avctx->extradata;
85 int depth; 85 int depth;
86 86
87 s->avctx = avctx; 87 s->avctx = avctx;
88 avctx->has_b_frames = 0;
89 88
90 s->fli_type = AV_RL16(&fli_header[4]); /* Might be overridden if a Magic Carpet FLC */ 89 s->fli_type = AV_RL16(&fli_header[4]); /* Might be overridden if a Magic Carpet FLC */
91 depth = AV_RL16(&fli_header[12]); 90 depth = AV_RL16(&fli_header[12]);
92 91
93 if (depth == 0) { 92 if (depth == 0) {