[FFmpeg-devel] [PATCH] avformat/hls.c:If custom IO is used, Don`t keepalive.

2018-09-28 Thread He Lei
Because, the URLContext of the aviocontext is null when custom IO is used, If keepalive, that will cause the assertion to fail. Signed-off-by: Lei He --- libavformat/hls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index 8ad08baaed.

Re: [FFmpeg-devel] [PATCH] avformat/hls.c:If custom IO is used, Don`t keepalive.

2018-09-27 Thread Michael Niedermayer
On Thu, Sep 27, 2018 at 11:01:15AM +, He Lei wrote: > The URLContext of the aviocontext is null when custom IO is used, If > keepalive, that will cause the assertion to fail > > 592 static int open_url_keepalive(AVFormatContext *s, AVIOContext **pb, > 593 cons

Re: [FFmpeg-devel] [PATCH] avformat/hls.c:If custom IO is used, Don`t keepalive.

2018-09-27 Thread He Lei
The URLContext of the aviocontext is null when custom IO is used, If keepalive, that will cause the assertion to fail 592 static int open_url_keepalive(AVFormatContext *s, AVIOContext **pb, 593 const char *url) 594 { 595 #if !CONFIG_HTTP_PROTOCOL 596 return