avfilter/avf_showcwt: fix DIRECTION_RL EOF fill clearing the wrong columns

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 5f13df1b51)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer
2026-06-14 21:35:25 +02:00
parent a39722471b
commit b965c180c7
+1 -1
View File
@@ -1150,7 +1150,7 @@ static int output_frame(AVFilterContext *ctx)
case DIRECTION_RL:
for (int p = 0; p < nb_planes; p++) {
ptrdiff_t linesize = s->outpicref->linesize[p];
const int size = s->w - s->pos;
const int size = FFMIN(s->pos + 1, s->sono_size);
const int fill = p > 0 && p < 3 ? 128 : 0;
for (int y = 0; y < s->h; y++) {