mirror of
https://github.com/librempeg/librempeg
synced 2024-11-23 19:58:59 +00:00
if b frames are parsed, set codec->has_b_frames
Originally committed as revision 19147 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
aa9b754ffc
commit
818062f2f3
@ -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…
Reference in New Issue
Block a user