diff options
author | Steven Liu <lq@chinaffmpeg.org> | 2020-07-22 17:15:28 +0800 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2020-08-10 15:52:54 +0800 |
commit | 6e4bba40557613282a10dadb5a0a9c5f5f500987 (patch) | |
tree | e7df725c2df3495f0e78c9efd85f204e8160a3a5 | |
parent | 6e951d0cf8dcbc98cb45b9a72ed8d9e76f4a2e3f (diff) | |
download | ffmpeg-6e4bba40557613282a10dadb5a0a9c5f5f500987.tar.gz |
avformat/hls: support avio_seek in encryption mode
Signed-off-by: Steven Liu <liuqi05@kuaishou.com>
-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 cf0b71d65d..84f0a5f323 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -1291,7 +1291,7 @@ static int open_input(HLSContext *c, struct playlist *pls, struct segment *seg, * as would be expected. Wrong offset received from the server will not be * noticed without the call, though. */ - if (ret == 0 && !is_http && seg->key_type == KEY_NONE && seg->url_offset) { + if (ret == 0 && !is_http && seg->url_offset) { int64_t seekret = avio_seek(*in, seg->url_offset, SEEK_SET); if (seekret < 0) { av_log(pls->parent, AV_LOG_ERROR, "Unable to seek to offset %"PRId64" of HLS segment '%s'\n", seg->url_offset, seg->url); |