diff options
author | Rainer Hochecker <fernetmenta@online.de> | 2015-11-15 13:58:50 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-01-15 17:39:04 +0100 |
commit | 50aacb334a341b941603f22b3a0d841046dc4887 (patch) | |
tree | 32004fa15bd9f78f72c38577248bd0a6a9c95f6d /libavformat | |
parent | 65e7ad746fab4320235a04a8ba274ed40bcafa95 (diff) | |
download | ffmpeg-50aacb334a341b941603f22b3a0d841046dc4887.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>
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 3413a7ff50..b116a45c75 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2361,7 +2361,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) |