From ffd3ae1fad2a63345a682635e8f2082e1d7475b7 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 14 Oct 2014 20:43:27 +0200 Subject: [PATCH] demux_lavf: let libavformat open HLS streams directly Fixes opening some streams. This means the HLS playlist will be opened twice, but that's not much of a problem, considering it's pretty small, and HLS will make many other http accesses anyway. --- demux/demux_lavf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c index fd3a38ea89..ddec27f66d 100644 --- a/demux/demux_lavf.c +++ b/demux/demux_lavf.c @@ -707,7 +707,8 @@ static int demux_open_lavf(demuxer_t *demuxer, enum demux_check check) } if ((priv->avif->flags & AVFMT_NOFILE) || - demuxer->stream->type == STREAMTYPE_AVDEVICE) + demuxer->stream->type == STREAMTYPE_AVDEVICE || + matches_avinputformat_name(priv, "hls")) { // This might be incorrect. demuxer->seekable = true;