]> git.sesse.net Git - ffmpeg/commitdiff
hls: fix integer overflow
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 19 Oct 2012 21:00:47 +0000 (23:00 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 19 Oct 2012 21:00:47 +0000 (23:00 +0200)
Fixes CID717892
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/hls.c

index 6675a1a4a34e74b9778c399bd43ce5f9300a4126..ef5803ba4b4a836fbe01d55ed8f931833ce35089 100644 (file)
@@ -409,7 +409,7 @@ reload:
             /* If we need to reload the playlist again below (if
              * there's still no more segments), switch to a reload
              * interval of half the target duration. */
-            reload_interval = v->target_duration * 500000;
+            reload_interval = v->target_duration * 500000LL;
         }
         if (v->cur_seq_no < v->start_seq_no) {
             av_log(NULL, AV_LOG_WARNING,