From 2ca649f177e0808cd550cf4abde793c923b66db2 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 6 Nov 2012 18:44:14 +0100 Subject: [PATCH] utils: fix integer overflow with DURATION_MAX_READ_SIZE Fixes CID703746 Signed-off-by: Michael Niedermayer --- libavformat/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index 72a3d5eeae..1c5614f874 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2155,7 +2155,7 @@ static void estimate_timings_from_bit_rate(AVFormatContext *ic) } } -#define DURATION_MAX_READ_SIZE 250000 +#define DURATION_MAX_READ_SIZE 250000LL #define DURATION_MAX_RETRY 4 /* only usable for MPEG-PS streams */