diff mbox

[FFmpeg-devel,V1,3/4] lavf/hls: remove redundancy seekable setting

Message ID 1568375617-19090-3-git-send-email-mypopydev@gmail.com
State Accepted
Commit 90a5bebd19ea025044f73edfa9984e7bc964a5eb
Headers show

Commit Message

Jun Zhao Sept. 13, 2019, 11:53 a.m. UTC
From: Jun Zhao <barryjzhao@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 <barryjzhao@tencent.com>
---
 libavformat/hls.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
diff mbox

Patch

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) {