From a3dcc6e2ce6141b71cbf643bfeb4e94fc89e1a57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Sat, 16 May 2026 17:36:28 +0200 Subject: [PATCH] avformat/hlsenc: use correct close function for custom io MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is open by s->io_open(). (cherry picked from commit 200cbaeb5a98a33103d564dc433e09733481be07) Signed-off-by: Kacper Michajłow --- libavformat/hlsenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 97942bf023..1d8c5ea7d6 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -810,7 +810,7 @@ static int do_encrypt(AVFormatContext *s, VariantStream *vs) return ret; avio_seek(pb, 0, SEEK_CUR); avio_write(pb, key, KEYSIZE); - avio_close(pb); + ff_format_io_close(s, &pb); } return 0; }