From 9d73e302537144877ca9d5b648b21aca28b78f4f Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 18 Jun 2013 20:47:07 +0200 Subject: [PATCH] ff_gen_search: make step 64it to prevent hypothetical integer overflow 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 68c0263ab5..9d9d3d6575 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1769,7 +1769,7 @@ int64_t ff_gen_search(AVFormatContext *s, int stream_index, int64_t target_ts, } if(ts_max == AV_NOPTS_VALUE){ - int step= 1024; + int64_t step= 1024; filesize = avio_size(s->pb); pos_max = filesize - 1; do{