diff options
author | Zhao Zhili <quinkblack@foxmail.com> | 2022-03-16 01:06:01 +0800 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2022-03-21 00:48:30 +0100 |
commit | 92053aa26053b941a027a4fc56674d7d86ba1e58 (patch) | |
tree | 3a8cb5428298c7c913d5a2395e9da0483dbd7d0f | |
parent | efdde028bb420b7bd96d61aad33f6ef549ee07bd (diff) | |
download | ffmpeg-92053aa26053b941a027a4fc56674d7d86ba1e58.tar.gz |
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>
-rw-r--r-- | libavformat/hls.c | 2 |
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, |