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:47 +0100 |
commit | 5e105aca0145f0affc7e7115b64406e352811bc4 (patch) | |
tree | 03d25e53f3879c80c6a08e4eb2ff41cdd6405f07 | |
parent | a9c721da12e39396066e28ddd6e35b8fc538f294 (diff) | |
download | ffmpeg-5e105aca0145f0affc7e7115b64406e352811bc4.tar.gz |
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>
-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 386ce37a77..30567fa2ec 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2451,7 +2451,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) |