From: Jun Zhao <barryjz...@tencent.com>

ffio_init_context with NULL seek callback will setting seekable with 0, so
remove the redundancy seekable setting.

Signed-off-by: Jun Zhao <barryjz...@tencent.com>
---
 libavformat/hls.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/libavformat/hls.c b/libavformat/hls.c
index b32940b..bb07dcb 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -1905,7 +1905,6 @@ static int hls_read_header(AVFormatContext *s)
         }
         ffio_init_context(&pls->pb, pls->read_buffer, INITIAL_BUFFER_SIZE, 0, 
pls,
                           read_data, NULL, NULL);
-        pls->pb.seekable = 0;
         ret = av_probe_input_buffer(&pls->pb, &in_fmt, pls->segments[0]->url,
                                     NULL, 0, 0);
         if (ret < 0) {
-- 
1.7.1

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to