diff options
author | Rainer Hochecker <fernetmenta@online.de> | 2015-11-15 13:58:50 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-12-09 20:46:56 +0100 |
commit | 5e4ec87720a64cd969120af60e82cbd55454ab8e (patch) | |
tree | 3e0b5a92254d8a6cf54e690bf4dc21f1311233ba /libavformat | |
parent | ab70292fd0c35d1c308f6cdbb810746edf644233 (diff) | |
download | ffmpeg-n2.4.12.tar.gz |
avformat/utils: estimate_timings_from_pts - increase retry counter, fixes invalid duration for ts files with hevc codecn2.4.12
Fixes a mpegts file with hevc that fails estimating duration. Increasing number of
retries fixes the issue.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 2d8c2f1a28073d451c7db31291c333cb15ca3d0b)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 4ce97cca92..f26cfb34a7 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2319,7 +2319,7 @@ static void estimate_timings_from_bit_rate(AVFormatContext *ic) } #define DURATION_MAX_READ_SIZE 250000LL -#define DURATION_MAX_RETRY 4 +#define DURATION_MAX_RETRY 6 /* only usable for MPEG-PS streams */ static void estimate_timings_from_pts(AVFormatContext *ic, int64_t old_offset) |