summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-03-19 21:11:58 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-03-21 20:46:29 +0100
commit6e65b9bb1f55d2ffffa234bd212459a1395ca7e5 (patch)
treece6aedfd5aa39199c66fcd4e334f2149df906d3d
parentd4773c94a6b539f5bf9eb3d53100aafeda99b644 (diff)
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: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavformat/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 5409907143..67d4d1b70a 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -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)