[FFmpeg-cvslog] hls: fix integer overflow

Michael Niedermayer git at videolan.org
Fri Oct 19 23:40:55 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Oct 19 23:00:47 2012 +0200| [395caf3de84a2bb179381f6ba4fbcb86ba24e3e7] | committer: Michael Niedermayer

hls: fix integer overflow

Fixes CID717892
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=395caf3de84a2bb179381f6ba4fbcb86ba24e3e7
---

 libavformat/hls.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/hls.c b/libavformat/hls.c
index 6675a1a..ef5803b 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -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,



More information about the ffmpeg-cvslog mailing list