Commit b89e0273 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

HLS: fix a signed comparison warning

(cherry picked from commit a5b0a06c3a8a6c6276e172174405b40e6678b2a1)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 1c9c4423
......@@ -211,7 +211,7 @@ static bool isHTTPLiveStreaming(stream_t *s)
for (size_t i = 0; i < ARRAY_SIZE(ext); i++)
{
size_t len = strlen(ext[i]);
if (size < len)
if (size < 0 || (size_t)size < len)
continue;
if (!memcmp(peek, ext[i], len))
return true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment