aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorRainer Hochecker <fernetmenta@online.de>2015-11-15 13:58:50 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2015-12-09 20:46:56 +0100
commit5e4ec87720a64cd969120af60e82cbd55454ab8e (patch)
tree3e0b5a92254d8a6cf54e690bf4dc21f1311233ba /libavformat
parentab70292fd0c35d1c308f6cdbb810746edf644233 (diff)
downloadffmpeg-5e4ec87720a64cd969120af60e82cbd55454ab8e.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.c2
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)