[FFmpeg-cvslog] hlsproto: fix integer overflow

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


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Oct 19 23:24:03 2012 +0200| [8fb8d539a4c594a58df226bc1bd7a4d149f39424] | committer: Michael Niedermayer

hlsproto: fix integer overflow

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

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

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

diff --git a/libavformat/hlsproto.c b/libavformat/hlsproto.c
index a290c88..79cf0e4 100644
--- a/libavformat/hlsproto.c
+++ b/libavformat/hlsproto.c
@@ -293,7 +293,7 @@ retry:
             /* 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 = s->target_duration * 500000;
+            reload_interval = s->target_duration * 500000LL;
         }
     }
     if (s->cur_seq_no < s->start_seq_no) {



More information about the ffmpeg-cvslog mailing list