aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/hls.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-01-24 20:07:48 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-01-25 00:18:57 +0100
commitcde57eee98d2e26daeeb1ba0cdd1f3d3acb3eb8a (patch)
tree277faf2fa1d8af715296fa049d3255cb634ce8ef /libavformat/hls.c
parent3e7d6849120d61bb354376d52786c26f20e20835 (diff)
downloadffmpeg-cde57eee98d2e26daeeb1ba0cdd1f3d3acb3eb8a.tar.gz
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: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/hls.c')
-rw-r--r--libavformat/hls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/hls.c b/libavformat/hls.c
index 846d884cb1..dce8a5ceb1 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -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:") ||