if b frames are parsed, set codec->has_b_frames

Originally committed as revision 19147 to svn://svn.ffmpeg.org/ffmpeg/trunk
release/0.6
Baptiste Coudurier 16 years ago
parent aa9b754ffc
commit 818062f2f3
  1. 3
      libavformat/utils.c

@ -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;

Loading…
Cancel
Save