summaryrefslogtreecommitdiff
path: root/libavformat/hls.c
diff options
context:
space:
mode:
authorwm4 <nfxjfg@googlemail.com>2018-01-24 07:58:52 +0100
committerwm4 <nfxjfg@googlemail.com>2018-01-27 04:10:52 +0100
commit637dfa39421c2806616d1aa454c9182db1aac3d9 (patch)
tree801c0ba190749a5b7c1202fd6e3879058007ed57 /libavformat/hls.c
parent77237504757b97c068796a4e9ef81b9653618616 (diff)
downloadffmpeg-637dfa39421c2806616d1aa454c9182db1aac3d9.tar.gz
hls: do not allow fallback to generic seeking
This makes little sense due to how HLS works, and only causes some additional annoyances if the HLS read_seek function fails (for example if it's a live stream). It was most likely unintended.
Diffstat (limited to 'libavformat/hls.c')
-rw-r--r--libavformat/hls.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/hls.c b/libavformat/hls.c
index 950cc4c3bd..ff7bdecc93 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -2333,6 +2333,7 @@ AVInputFormat ff_hls_demuxer = {
.long_name = NULL_IF_CONFIG_SMALL("Apple HTTP Live Streaming"),
.priv_class = &hls_class,
.priv_data_size = sizeof(HLSContext),
+ .flags = AVFMT_NOGENSEARCH,
.read_probe = hls_probe,
.read_header = hls_read_header,
.read_packet = hls_read_packet,