Commit ee155f3c authored by bcoudurier's avatar bcoudurier

if b frames are parsed, set codec->has_b_frames

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19147 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 58c9c03f
...@@ -751,6 +751,9 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st, ...@@ -751,6 +751,9 @@ 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)
st->codec->has_b_frames = 1;
/* do we have a video B-frame ? */ /* do we have a video B-frame ? */
delay= st->codec->has_b_frames; delay= st->codec->has_b_frames;
presentation_delayed = 0; 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