summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorZhao Zhili <quinkblack@foxmail.com>2022-03-16 01:06:01 +0800
committerMarton Balint <cus@passwd.hu>2022-03-21 00:48:30 +0100
commit92053aa26053b941a027a4fc56674d7d86ba1e58 (patch)
tree3a8cb5428298c7c913d5a2395e9da0483dbd7d0f /libavformat
parentefdde028bb420b7bd96d61aad33f6ef549ee07bd (diff)
avformat/hls: add AVFMT_NO_BYTE_SEEK flag
After d6ac6650b91, ffplay failed to seek HLS stream with AVSEEK_FLAG_BYTE enabled by default. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/hls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/hls.c b/libavformat/hls.c
index cf6ef9dfb6..1a1b40abe4 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -2499,7 +2499,7 @@ const 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 | AVFMT_TS_DISCONT,
+ .flags = AVFMT_NOGENSEARCH | AVFMT_TS_DISCONT | AVFMT_NO_BYTE_SEEK,
.flags_internal = FF_FMT_INIT_CLEANUP,
.read_probe = hls_probe,
.read_header = hls_read_header,