aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-06-18 20:47:07 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-06-18 20:47:07 +0200
commit9d73e302537144877ca9d5b648b21aca28b78f4f (patch)
tree368491070118e833c65be9230f42a7bfb237ce55 /libavformat
parente3580449221c79cf611995dc7e2fcb61dd867d4c (diff)
downloadffmpeg-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.c2
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{