Commit 184723ed authored by Francois Cartegnie's avatar Francois Cartegnie

demux: hls: extend probing (fix #14839)

parent 82397876
......@@ -104,11 +104,12 @@ static bool isHTTPLiveStreaming(stream_t *s)
{
const uint8_t *peek;
int size = stream_Peek(s, &peek, 46);
if (size < 7)
int size = stream_Peek(s, &peek, 7);
if (size < 7 || memcmp(peek, "#EXTM3U", 7))
return false;
if (memcmp(peek, "#EXTM3U", 7) != 0)
size = stream_Peek(s, &peek, 512);
if (size < 7)
return false;
peek += 7;
......
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