From: Andreas Rheinhardt Date: Sat, 9 May 2020 13:34:09 +0000 (+0200) Subject: avformat/hlsenc: Don't reset AVIOContext pointer manually a second time X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=a90f2265fa54ab35ee1b2058c7d6e746fd847359;p=ffmpeg avformat/hlsenc: Don't reset AVIOContext pointer manually a second time ff_format_io_close() already does it for us. Signed-off-by: Andreas Rheinhardt --- diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 7b289c060f7..a796c124dde 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -2497,7 +2497,6 @@ static int hls_write_packet(AVFormatContext *s, AVPacket *pkt) if ((ret = hls_window(s, 0, vs)) < 0) { av_log(s, AV_LOG_WARNING, "upload playlist failed, will retry with a new http session.\n"); ff_format_io_close(s, &vs->out); - vs->out = NULL; if ((ret = hls_window(s, 0, vs)) < 0) { av_freep(&old_filename); return ret;