diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-06-18 20:47:07 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-06-18 20:47:07 +0200 |
commit | 9d73e302537144877ca9d5b648b21aca28b78f4f (patch) | |
tree | 368491070118e833c65be9230f42a7bfb237ce55 /libavformat | |
parent | e3580449221c79cf611995dc7e2fcb61dd867d4c (diff) | |
download | ffmpeg-9d73e302537144877ca9d5b648b21aca28b78f4f.tar.gz |
ff_gen_search: make step 64it to prevent hypothetical integer overflow
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
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{ |