lavf/hls: remove redundancy seekable setting
authorJun Zhao <barryjzhao@tencent.com>
Fri, 13 Sep 2019 11:53:36 +0000 (19:53 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Sat, 14 Sep 2019 02:01:19 +0000 (10:01 +0800)
ffio_init_context with NULL seek callback will setting seekable with 0, so
remove the redundancy seekable setting.

Reviewed-by: Steven Liu <lq@onvideo.cn>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
libavformat/hls.c

index b32940b..bb07dcb 100644 (file)
@@ -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) {