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 e80a562cca3a71d936d914c7f18d1577c8d0a2a1
Author:     Ruk Doe <[email protected]>
AuthorDate: Sat Oct 10 16:32:15 2026 +0900
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Nov 15 05:26:10 2026 +0100

    avcodec/libaribcaption: reset the CLUT alpha table with the CLUT
    
    clut_alpha holds the alpha values pixels are snapped to, but only its
    first entry was reset for each rect; the others kept the values seeded
    by earlier captions. Those stayed available for quantization even when
    the current seed palette has no such alpha, so pixels could snap to a
    stale alpha, e.g. to 128 instead of 255 after an earlier caption with a
    semi-transparent color. Reset all entries with the CLUT.
    
    Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
    Claude-Session: https://claude.ai/code/session_01DdDiDRusmi6eD7qSrKBjHb
    (cherry picked from commit 43b1c4fe48757b0433dc0668769683eef1581029)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/libaribcaption.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/libaribcaption.c b/libavcodec/libaribcaption.c
index 957cb86f78..7eff0e6948 100644
--- a/libavcodec/libaribcaption.c
+++ b/libavcodec/libaribcaption.c
@@ -257,6 +257,7 @@ static void clut_init(ARIBCaptionContext *ctx, 
aribcc_caption_region_t *region)
     uint32_t rgba;
 
     ctx->clut[0] = CLUT_RGBA(0,0,0,0); /* transparent */
+    memset(ctx->clut_alpha, 0, sizeof(ctx->clut_alpha));
     ctx->clut_alpha[0] = 0xFF;
     ctx->clut_idx = 1;
     ctx->clut_overflow = 0;

-- 
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