[vlc-commits] demux: adaptative: fix warning

Francois Cartegnie git at videolan.org
Fri Oct 9 15:56:21 CEST 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Oct  9 15:52:00 2015 +0200| [09f6d6f25f5afbdb32b2242bd8ddbb2f360a870a] | committer: Francois Cartegnie

demux: adaptative: fix warning

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=09f6d6f25f5afbdb32b2242bd8ddbb2f360a870a
---

 modules/demux/hls/playlist/Parser.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/hls/playlist/Parser.cpp b/modules/demux/hls/playlist/Parser.cpp
index 897ae17..6ee4ae6 100644
--- a/modules/demux/hls/playlist/Parser.cpp
+++ b/modules/demux/hls/playlist/Parser.cpp
@@ -321,7 +321,7 @@ void M3U8Parser::parseSegments(vlc_object_t *p_obj, Representation *rep, const s
     {
         rep->getPlaylist()->duration.Set(0);
     }
-    else if(totalduration * CLOCK_FREQ / rep->timescale.Get() > rep->getPlaylist()->duration.Get())
+    else if(totalduration * CLOCK_FREQ / rep->timescale.Get() > (uint64_t) rep->getPlaylist()->duration.Get())
     {
         rep->getPlaylist()->duration.Set(totalduration * CLOCK_FREQ / rep->timescale.Get());
     }



More information about the vlc-commits mailing list