From f4a4be3f4e9b5f69fc9063c2030e255e754b4a24 Mon Sep 17 00:00:00 2001 From: Wallak Date: Sat, 3 Oct 2009 19:30:09 +0000 Subject: [PATCH] H264 allows B frames without requiring a >=1 sized buffer. Patch by wallak, wallak free fr Originally committed as revision 20160 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index 1e8a2f4280..f46be17860 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -770,7 +770,7 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st, int num, den, presentation_delayed, delay, i; int64_t offset; - if (pc && pc->pict_type == FF_B_TYPE) + if (st->codec->codec_id != CODEC_ID_H264 && pc && pc->pict_type == FF_B_TYPE) st->codec->has_b_frames = 1; /* do we have a video B-frame ? */ -- 2.11.0