You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
ff_gen_search: make step 64it to prevent hypothetical integer overflow
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -1769,7 +1769,7 @@ int64_t ff_gen_search(AVFormatContext *s, int stream_index, int64_t target_ts,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(ts_max == AV_NOPTS_VALUE){
|
if(ts_max == AV_NOPTS_VALUE){
|
||||||
int step= 1024;
|
int64_t step= 1024;
|
||||||
filesize = avio_size(s->pb);
|
filesize = avio_size(s->pb);
|
||||||
pos_max = filesize - 1;
|
pos_max = filesize - 1;
|
||||||
do{
|
do{
|
||||||
|
Reference in New Issue
Block a user