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

HLS: fix a signed comparison warning

parent 533c3fda
......@@ -210,7 +210,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