Mercurial > libavcodec.hg
comparison fraps.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 | 05e932ddaaa9 |
children | 1d116d421bbb |
comparison
equal
deleted
inserted
replaced
4800:d6b2ddac2c5e | 4801:66ef3690d108 |
---|---|
71 static int decode_init(AVCodecContext *avctx) | 71 static int decode_init(AVCodecContext *avctx) |
72 { | 72 { |
73 FrapsContext * const s = avctx->priv_data; | 73 FrapsContext * const s = avctx->priv_data; |
74 | 74 |
75 avctx->coded_frame = (AVFrame*)&s->frame; | 75 avctx->coded_frame = (AVFrame*)&s->frame; |
76 avctx->has_b_frames = 0; | |
77 avctx->pix_fmt= PIX_FMT_NONE; /* set in decode_frame */ | 76 avctx->pix_fmt= PIX_FMT_NONE; /* set in decode_frame */ |
78 | 77 |
79 s->avctx = avctx; | 78 s->avctx = avctx; |
80 s->frame.data[0] = NULL; | 79 s->frame.data[0] = NULL; |
81 s->tmpbuf = NULL; | 80 s->tmpbuf = NULL; |