]> git.sesse.net Git - ffmpeg/commitdiff
hls: do not allow fallback to generic seeking
authorwm4 <nfxjfg@googlemail.com>
Wed, 24 Jan 2018 06:58:52 +0000 (07:58 +0100)
committerwm4 <nfxjfg@googlemail.com>
Sat, 27 Jan 2018 03:10:52 +0000 (04:10 +0100)
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.

libavformat/hls.c

index 950cc4c3bd1af83dc098d9287869374cb3162404..ff7bdecc9338e2de7b5f5d34b6351869c5767f40 100644 (file)
@@ -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,