Commit cde57eee authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/hls: Check that filename is not "" in probe before checking its extension

Possibly the check as a whole causes more problems than it helps, if so dont
hesitate to remove it
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 3e7d6849
......@@ -1984,7 +1984,7 @@ static int hls_probe(AVProbeData *p)
if (strncmp(p->buf, "#EXTM3U", 7))
return 0;
if (p->filename && !av_match_ext(p->filename, "m3u8,m3u"))
if (p->filename && *p->filename && !av_match_ext(p->filename, "m3u8,m3u"))
return 0;
if (strstr(p->buf, "#EXT-X-STREAM-INF:") ||
......
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