Mercurial > libavformat.hg
diff utils.c @ 5014:54fa3d7ab724 libavformat
if b frames are parsed, set codec->has_b_frames
author | bcoudurier |
---|---|
date | Thu, 11 Jun 2009 04:30:05 +0000 |
parents | 7cd258a049b1 |
children | 05ecbb54e8bf |
line wrap: on
line diff
--- a/utils.c Wed Jun 10 15:08:02 2009 +0000 +++ b/utils.c Thu Jun 11 04:30:05 2009 +0000 @@ -751,6 +751,9 @@ 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;