diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-06-18 20:47:07 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-06-18 23:45:37 +0200 |
commit | 04d69466003ff9496a8238d5d5e8714759662112 (patch) | |
tree | 133de769f481c751ea903ac06762d7d4a137faa2 | |
parent | ae93d3405e5e3c04bad2a74b4679482666535a51 (diff) | |
download | ffmpeg-04d69466003ff9496a8238d5d5e8714759662112.tar.gz |
ff_gen_search: make step 64 bit to prevent hypothetical integer overflow
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 9d73e302537144877ca9d5b648b21aca28b78f4f)
-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 7383cdeb9d..1ba9258977 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -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{ |