diff options
author | Rainer Hochecker <fernetmenta@online.de> | 2015-11-15 15:58:50 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-12-14 18:51:01 +0300 |
commit | 93fa19addf6dcf503989709de083b33443dc65c5 (patch) | |
tree | d903c7b4eb85bbfe2081f676b7bb1c73cf75df77 /libavformat | |
parent | 5c7ffbbda3e7addc63702ff51cee95c33457f194 (diff) |
avformat/utils: estimate_timings_from_pts - increase retry counter, fixes invalid duration for ts files with hevc codec
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 5729b0bde6..47d07071b7 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2391,7 +2391,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) |