[vlc-commits] hls: Removing warnings.

Hugo Beauzée-Luyssen git at videolan.org
Tue Jan 24 19:03:34 CET 2012


vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Tue Jan 24 16:39:35 2012 +0100| [f180bd5f1a8d065cd9ae0ae0409d74f645b4df3a] | committer: Jean-Baptiste Kempf

hls: Removing warnings.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/stream_filter/httplive.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index 4d6e550..6cdebb3 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -1176,7 +1176,7 @@ static int hls_DownloadSegmentKey(stream_t *s, segment_t *seg)
     len = stream_Read(p_m3u8, aeskey, sizeof(aeskey));
     if (len != AES_BLOCK_SIZE)
     {
-        msg_Err(s, "The AES key loaded doesn't have the right size (%d)", len);
+        msg_Err(s, "The AES key loaded doesn't have the right size (%zd)", len);
         stream_Delete(p_m3u8);
         return VLC_EGENERIC;
     }
@@ -1861,7 +1861,7 @@ static ssize_t read_M3U8_from_stream(stream_t *s, uint8_t **buffer)
             if (total_allocated)
                 total_allocated *= 2;
             else
-                total_allocated = __MIN(bytes+1, sizeof(buf));
+                total_allocated = __MIN((uint64_t)bytes+1, sizeof(buf));
 
             p = realloc_or_free(p, total_allocated);
             if (p == NULL)



More information about the vlc-commits mailing list