ff_gen_search: make step 64it to prevent hypothetical integer overflow
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 18 Jun 2013 18:47:07 +0000 (20:47 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 18 Jun 2013 18:47:07 +0000 (20:47 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/utils.c

index 68c0263..9d9d3d6 100644 (file)
@@ -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{