diff --git a/libavformat/utils.c b/libavformat/utils.c
index 251b2c66e6471d0e9a65b5f1c6813c58f731220c..f8ddaf751c67c3505673fdd4416f4cc9655506d7 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2463,7 +2463,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)