Commit 31cdf600 authored by Michael Niedermayer's avatar Michael Niedermayer

lavf: increase retries to guess duration from pts by 1

This fixes finding the duration for one TS file
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d8f27ece
...@@ -2140,7 +2140,7 @@ static void estimate_timings_from_bit_rate(AVFormatContext *ic) ...@@ -2140,7 +2140,7 @@ static void estimate_timings_from_bit_rate(AVFormatContext *ic)
} }
#define DURATION_MAX_READ_SIZE 250000 #define DURATION_MAX_READ_SIZE 250000
#define DURATION_MAX_RETRY 3 #define DURATION_MAX_RETRY 4
/* only usable for MPEG-PS streams */ /* only usable for MPEG-PS streams */
static void estimate_timings_from_pts(AVFormatContext *ic, int64_t old_offset) static void estimate_timings_from_pts(AVFormatContext *ic, int64_t old_offset)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment