[FFmpeg-cvslog] utils: fix integer overflow with DURATION_MAX_READ_SIZE

Michael Niedermayer git at videolan.org
Tue Nov 6 18:54:53 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Nov  6 18:44:14 2012 +0100| [2ca649f177e0808cd550cf4abde793c923b66db2] | committer: Michael Niedermayer

utils: fix integer overflow with DURATION_MAX_READ_SIZE

Fixes CID703746
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2ca649f177e0808cd550cf4abde793c923b66db2
---

 libavformat/utils.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 72a3d5e..1c5614f 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 */



More information about the ffmpeg-cvslog mailing list