diff options
Diffstat (limited to 'demux/demux_lavf.c')
-rw-r--r-- | demux/demux_lavf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c index ddec27f66d..85db0692e8 100644 --- a/demux/demux_lavf.c +++ b/demux/demux_lavf.c @@ -706,10 +706,13 @@ static int demux_open_lavf(demuxer_t *demuxer, enum demux_check check) "analyzeduration to %f\n", analyze_duration); } + AVDictionary *dopts = NULL; + if ((priv->avif->flags & AVFMT_NOFILE) || demuxer->stream->type == STREAMTYPE_AVDEVICE || matches_avinputformat_name(priv, "hls")) { + mp_setup_av_network_options(&dopts, demuxer->global, demuxer->log, opts); // This might be incorrect. demuxer->seekable = true; } else { @@ -727,8 +730,6 @@ static int demux_open_lavf(demuxer_t *demuxer, enum demux_check check) avfc->pb = priv->pb; } - AVDictionary *dopts = NULL; - if (matches_avinputformat_name(priv, "rtsp")) { const char *transport = NULL; switch (opts->network_rtsp_transport) { |