diff --git a/libavformat/utils.c b/libavformat/utils.c
index 375a878059e215f1a95a2d1d07071b20543054d1..5a3af68e7406271578cf2d5e60a77d2ef652d425 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -1846,7 +1846,7 @@ static int try_decode_frame(AVStream *st, const uint8_t *data, int size)
 #define MAX_READ_SIZE        5000000
 
 /* maximum duration until we stop analysing the stream */
-#define MAX_STREAM_DURATION  ((int)(AV_TIME_BASE * 2.0))
+#define MAX_STREAM_DURATION  ((int)(AV_TIME_BASE * 3.0))
 
 /**
  * Read the beginning of a media file to get stream information. This