提交 cde57eee 编写于 作者: M 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: NMichael Niedermayer <michael@niedermayer.cc>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册