Commit 818062f2 authored by Baptiste Coudurier's avatar Baptiste Coudurier
Browse files

if b frames are parsed, set codec->has_b_frames

Originally committed as revision 19147 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent aa9b754f
......@@ -751,6 +751,9 @@ 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)
st->codec->has_b_frames = 1;
/* do we have a video B-frame ? */
delay= st->codec->has_b_frames;
presentation_delayed = 0;
......
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