Commit 6e65b9bb authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/utils: scan a bit farther for a keyframe in mpeg/mpegts (7 sec...

avformat/utils: scan a bit farther for a keyframe in mpeg/mpegts (7 sec instead of 5, we already scan 90sec in some cases by default)

Fixes Ticket5305
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent d4773c94
......@@ -3208,6 +3208,8 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
max_subtitle_analyze_duration = 30*AV_TIME_BASE;
if (!strcmp(ic->iformat->name, "flv"))
max_stream_analyze_duration = 90*AV_TIME_BASE;
if (!strcmp(ic->iformat->name, "mpeg") || !strcmp(ic->iformat->name, "mpegts"))
max_stream_analyze_duration = 7*AV_TIME_BASE;
}
if (ic->pb)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment