Commit 9d73e302 authored by Michael Niedermayer's avatar Michael Niedermayer

ff_gen_search: make step 64it to prevent hypothetical integer overflow

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e3580449
......@@ -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{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment