This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/8.1 in repository ffmpeg.
commit b632676096cd047d505ea3d792ad934a547bb0cf Author: Ruk Doe <[email protected]> AuthorDate: Sat Oct 10 12:04:27 2026 +0900 Commit: Michael Niedermayer <[email protected]> CommitDate: Mon Nov 30 06:20:49 2026 +0100 avcodec/libaribcaption: free the render result after converting it aribcc_renderer_render() fills ctx->render_result with images that are owned by the caller and must be released with aribcc_render_result_cleanup(). The bitmap path did this only for the "unchanged", "no image" and unknown-status returns. After converting the images into AVSubtitleRects, and on the error path, the result was left allocated, and the next call overwrote it without freeing it. Every rendered caption therefore leaked its bitmaps. The images are not used after conversion, so release them before returning from both paths. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01DdDiDRusmi6eD7qSrKBjHb Reported-by: Forgejo_Fairy Reference: #24067 (cherry picked from commit e3c8e7fbbf998559738c9df84fdba6cff894862e) Signed-off-by: Michael Niedermayer <[email protected]> --- libavcodec/libaribcaption.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/libaribcaption.c b/libavcodec/libaribcaption.c index baddbe2bca..daa95c5219 100644 --- a/libavcodec/libaribcaption.c +++ b/libavcodec/libaribcaption.c @@ -479,6 +479,7 @@ static int aribcaption_trans_bitmap_subtitle(ARIBCaptionContext *ctx) av_log(ctx, AV_LOG_WARNING, "CLUT overflow (%d).\n", ctx->clut_overflow); } sub->num_rects = rect_idx; + aribcc_render_result_cleanup(&ctx->render_result); return rect_idx; @@ -494,6 +495,7 @@ fail: av_freep(&sub->rects); } sub->num_rects = 0; + aribcc_render_result_cleanup(&ctx->render_result); return ret; } -- 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]
