[FFmpeg-cvslog] ff_gen_search: make step 64it to prevent hypothetical integer overflow
Michael Niedermayer
git at videolan.org
Tue Jun 18 22:59:20 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jun 18 20:47:07 2013 +0200| [9d73e302537144877ca9d5b648b21aca28b78f4f] | committer: Michael Niedermayer
ff_gen_search: make step 64it to prevent hypothetical integer overflow
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9d73e302537144877ca9d5b648b21aca28b78f4f
---
libavformat/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 68c0263..9d9d3d6 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{
More information about the ffmpeg-cvslog
mailing list