Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-06-18 22:47:07 +0400
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2013-06-19 01:45:37 +0400
commit04d69466003ff9496a8238d5d5e8714759662112 (patch)
tree133de769f481c751ea903ac06762d7d4a137faa2 /libavformat
parentae93d3405e5e3c04bad2a74b4679482666535a51 (diff)
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)
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/utils.c2
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{