Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2014-02-02 19:53:10 +0400
committerHendrik Leppkes <h.leppkes@gmail.com>2017-08-04 20:12:12 +0300
commit04bfc61e2782c4c1f53f090cf6190cd5016a9dac (patch)
tree5af6adb8b51a3cfac0eb838a322d394554fb233a
parent728a700b929661574fd799ade65fb9a775fce165 (diff)
avformat: try harder to find a duration of the media
This helps finding a duration in files with a lot of garbage data at the end, increasing the lookup area from 4MB to 32MB. There should be no speed loss on files which previously worked fine, since it'll stop looking once it found a duration.
-rw-r--r--libavformat/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index b5589f2d70..c7a0389314 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2720,7 +2720,7 @@ static void estimate_timings_from_bit_rate(AVFormatContext *ic)
}
#define DURATION_MAX_READ_SIZE 250000LL
-#define DURATION_MAX_RETRY 6
+#define DURATION_MAX_RETRY 7
/* only usable for MPEG-PS streams */
static void estimate_timings_from_pts(AVFormatContext *ic, int64_t old_offset)