ffmpeg | branch: master | Michael Niedermayer <mich...@niedermayer.cc> | Sun Jan 24 20:07:48 2016 +0100| [cde57eee98d2e26daeeb1ba0cdd1f3d3acb3eb8a] | committer: 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: Michael Niedermayer <mich...@niedermayer.cc> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cde57eee98d2e26daeeb1ba0cdd1f3d3acb3eb8a --- libavformat/hls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index 846d884..dce8a5c 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:") || _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog