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

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

commit 71823ab4ab66e952c253f916b905ceed0287a4dd
Author:     jiale yao <[email protected]>
AuthorDate: Fri Jun 12 19:27:35 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Wed Jun 17 05:19:54 2026 +0200

    avfilter/avf_showcwt: fix DIRECTION_DU EOF fill clearing the wrong rows
    
    Fixes: out of array read
    
    Signed-off-by: Michael Niedermayer <[email protected]>
    (cherry picked from commit 0d0eadd8edcccdd3cc1114ea81794321b3e59d76)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavfilter/avf_showcwt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/avf_showcwt.c b/libavfilter/avf_showcwt.c
index b4eed5ccc9..57e91f4f7f 100644
--- a/libavfilter/avf_showcwt.c
+++ b/libavfilter/avf_showcwt.c
@@ -1168,7 +1168,7 @@ static int output_frame(AVFilterContext *ctx)
                 ptrdiff_t linesize = s->outpicref->linesize[p];
                 const int fill = p > 0 && p < 3 ? 128 : 0;
 
-                for (int y = s->h - s->pos; y >= 0; y--) {
+                for (int y = FFMIN(s->pos, s->sono_size - 1); y >= 0; y--) {
                     uint8_t *dst = s->outpicref->data[p] + y * linesize;
 
                     memset(dst, fill, s->w);

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

Reply via email to