This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch release/9.1
in repository ffmpeg.

commit ed4753321eb250ef5cf1c990ffb14a3029803cc5
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sat Oct 24 05:47:15 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Nov 15 02:24:28 2026 +0100

    avcodec/libx265: free the Dolby Vision RPU after encoding the picture
    
    Fixes: memleak
    Fixes: 3wvWUVmf56kN (AISLE-2026-0150-00168)
    Memleak Replicated through UnModified FFmpeg with ASAN
    Found-by: Joshua Rogers <[email protected]>
    
    (cherry picked from commit 8dc4af2bbbd0d650e299a3d327bd48c775120e11)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/libx265.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c
index c5e6b8c150..0ec4f87f5f 100644
--- a/libavcodec/libx265.c
+++ b/libavcodec/libx265.c
@@ -878,6 +878,9 @@ static int libx265_encode_frame(AVCodecContext *avctx, 
AVPacket *pkt,
     for (i = 0; i < sei->numPayloads; i++)
         av_free(sei->payloads[i].payload);
     av_freep(&x265pic.quantOffsets);
+#if X265_BUILD >= 167
+    av_freep(&x265pic.rpu.payload);
+#endif
 
     if (ret < 0)
         return AVERROR_EXTERNAL;

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to