Mercurial > libavformat.hg
changeset 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 | 43d99d0e12e0 |
children | 7b260f4d453d |
files | utils.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
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;