utils: fix integer overflow with DURATION_MAX_READ_SIZE
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 6 Nov 2012 17:44:14 +0000 (18:44 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 6 Nov 2012 17:44:14 +0000 (18:44 +0100)
Fixes CID703746
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/utils.c

index 72a3d5e..1c5614f 100644 (file)
@@ -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 */