summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-02-01 00:05:33 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-02-01 15:06:34 +0100
commitaf24b1c0cd3cf57c6f5010d69e6d22bfc399a8e4 (patch)
tree864e7dbf96026d22618575d7070136416d6e1f1f /libavformat
parentbdd8e02b72e79478eb1c4e04d9a8efa100900878 (diff)
Revert "avformat/hls: Require the file extension to be m3u / m3u8 for probing to succeed"
This can cause problems with urls that have arguments after the filename This reverts commit b0c57206d583517a5ea35dd7f365f8260d9106f2. Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/hls.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavformat/hls.c b/libavformat/hls.c
index dce8a5ceb1..2d8e6c0a6a 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -1984,9 +1984,6 @@ static int hls_probe(AVProbeData *p)
if (strncmp(p->buf, "#EXTM3U", 7))
return 0;
- if (p->filename && *p->filename && !av_match_ext(p->filename, "m3u8,m3u"))
- return 0;
-
if (strstr(p->buf, "#EXT-X-STREAM-INF:") ||
strstr(p->buf, "#EXT-X-TARGETDURATION:") ||
strstr(p->buf, "#EXT-X-MEDIA-SEQUENCE:"))