Browse Source

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>
tags/n3.0
Michael Niedermayer 10 years ago
parent
commit
cde57eee98
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/hls.c

+ 1
- 1
libavformat/hls.c View File

@@ -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:") ||


Loading…
Cancel
Save