diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-06-11 04:30:05 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-06-11 04:30:05 +0000 |
commit | 818062f2f346df30f4ec0c0c1f54e8025cc3a80a (patch) | |
tree | 3ea62a40ec2406a7dd2533d5dace1c62eb669c1f | |
parent | aa9b754ffcaf03910ca95735325ec116c137c7bd (diff) | |
download | ffmpeg-818062f2f346df30f4ec0c0c1f54e8025cc3a80a.tar.gz |
if b frames are parsed, set codec->has_b_frames
Originally committed as revision 19147 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 252a7974b0..dc188853e3 100644 --- a/libavformat/utils.c +++ b/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; |