Commit 062091f8 authored by Michael Niedermayer's avatar Michael Niedermayer

compute_pkt_fields2: dont interpret max_b_frames of <0 as there being b frames.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent c21f8199
......@@ -3431,7 +3431,7 @@ fail:
//FIXME merge with compute_pkt_fields
static int compute_pkt_fields2(AVFormatContext *s, AVStream *st, AVPacket *pkt){
int delay = FFMAX(st->codec->has_b_frames, !!st->codec->max_b_frames);
int delay = FFMAX(st->codec->has_b_frames, st->codec->max_b_frames > 0);
int num, den, frame_size, i;
av_dlog(s, "compute_pkt_fields2: pts:%s dts:%s cur_dts:%s b:%d size:%d st:%d\n",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment