ff_gen_search: make step 64 bit to prevent hypothetical integer overflow

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 9d73e30253)
This commit is contained in:
Michael Niedermayer
2013-06-18 20:47:07 +02:00
committed by Carl Eugen Hoyos
parent ae93d3405e
commit 04d6946600

View File

@@ -1859,7 +1859,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{