PR #23117 opened by Kacper Michajłow (kasper93)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23117
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23117.patch

This is open by s->io_open().


From 1c5ba13442c329ceb1b499c5d52633932e0ccc38 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= <[email protected]>
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().

Signed-off-by: Kacper Michajłow <[email protected]>
---
 libavformat/hlsenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 59a173988b..c333e88271 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -705,7 +705,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;
 }
-- 
2.52.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to