mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-28 05:50:43 +00:00
find_stream_info: update last_dts more often
This improves dts validity checks and consequently fps detection of files with invalid dts Fixes Ticket1681 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
db0a0aa243
commit
19d8954966
@ -2721,7 +2721,7 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
|
||||
if (st->info->duration_count > 3)
|
||||
st->info->duration_gcd = av_gcd(st->info->duration_gcd, duration);
|
||||
}
|
||||
if (last == AV_NOPTS_VALUE || st->info->duration_count <= 1)
|
||||
if (pkt->dts != AV_NOPTS_VALUE)
|
||||
st->info->last_dts = pkt->dts;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user