1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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
This commit is contained in:
Wallak 2009-10-03 19:30:09 +00:00 committed by Carl Eugen Hoyos
parent 1febba1e62
commit f4a4be3f4e

View File

@ -770,7 +770,7 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st,
int num, den, presentation_delayed, delay, i; int num, den, presentation_delayed, delay, i;
int64_t offset; 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; st->codec->has_b_frames = 1;
/* do we have a video B-frame ? */ /* do we have a video B-frame ? */