mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/utils: fix duration_fields calculation when need_parsing=0
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
8349be852b
commit
0388203098
|
@ -2858,7 +2858,7 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
|
|||
}
|
||||
if (pkt->duration) {
|
||||
st->info->codec_info_duration += pkt->duration;
|
||||
st->info->codec_info_duration_fields += st->parser && st->codec->ticks_per_frame==2 ? st->parser->repeat_pict + 1 : 2;
|
||||
st->info->codec_info_duration_fields += st->parser && st->need_parsing && st->codec->ticks_per_frame==2 ? st->parser->repeat_pict + 1 : 2;
|
||||
}
|
||||
}
|
||||
#if FF_API_R_FRAME_RATE
|
||||
|
|
Loading…
Reference in New Issue