diff mbox

[FFmpeg-devel,1/3] hls: do not allow fallback to generic seeking

Message ID 20180124070823.17373-1-nfxjfg@googlemail.com
State Accepted
Commit 637dfa39421c2806616d1aa454c9182db1aac3d9
Headers show

Commit Message

wm4 Jan. 24, 2018, 7:08 a.m. UTC
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.
I guess in theory, this might allow skipping forward a bit, but let's be
honest, API users are better off to implement such things manually if
they want it. It also didn't actually work for me and only caused stupid
 libavformat/hls.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox


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,