comparison flashsv.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 a4ccf06dfae2
children b3ee9a1526b0
comparison
equal deleted inserted replaced
4800:d6b2ddac2c5e 4801:66ef3690d108
93 if (zret != Z_OK) { 93 if (zret != Z_OK) {
94 av_log(avctx, AV_LOG_ERROR, "Inflate init error: %d\n", zret); 94 av_log(avctx, AV_LOG_ERROR, "Inflate init error: %d\n", zret);
95 return 1; 95 return 1;
96 } 96 }
97 avctx->pix_fmt = PIX_FMT_BGR24; 97 avctx->pix_fmt = PIX_FMT_BGR24;
98 avctx->has_b_frames = 0;
99 s->frame.data[0] = NULL; 98 s->frame.data[0] = NULL;
100 99
101 return 0; 100 return 0;
102 } 101 }
103 102