[FFmpeg-cvslog] 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)

Michael Niedermayer git at videolan.org
Mon Mar 21 21:14:22 CET 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sat Mar 19 21:11:58 2016 +0100| [6e65b9bb1f55d2ffffa234bd212459a1395ca7e5] | committer: Michael Niedermayer

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 at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6e65b9bb1f55d2ffffa234bd212459a1395ca7e5
---

 libavformat/utils.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 5409907..67d4d1b 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)



More information about the ffmpeg-cvslog mailing list