This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 21361bf17fa841c60fe87adb2c208509c5d4167b Author: James Almer <[email protected]> AuthorDate: Sun Nov 8 23:23:25 2026 -0300 Commit: James Almer <[email protected]> CommitDate: Tue Nov 10 13:46:34 2026 +0000 avfilter/vf_transpose: only check the available planes when setting transpose function pointers And refuse unsupported values. Signed-off-by: James Almer <[email protected]> --- libavfilter/vf_transpose.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavfilter/vf_transpose.c b/libavfilter/vf_transpose.c index 62c222f3c2..b12e0bb53d 100644 --- a/libavfilter/vf_transpose.c +++ b/libavfilter/vf_transpose.c @@ -219,7 +219,7 @@ static int config_props_output(AVFilterLink *outlink) else outlink->sample_aspect_ratio = inlink->sample_aspect_ratio; - for (int i = 0; i < 4; i++) { + for (int i = 0; i < s->planes; i++) { TransVtable *v = &s->vtables[i]; switch (s->pixsteps[i]) { case 1: v->transpose_block = transpose_block_8_c; @@ -234,6 +234,8 @@ static int config_props_output(AVFilterLink *outlink) v->transpose_8x8 = transpose_8x8_48_c; break; case 8: v->transpose_block = transpose_block_64_c; v->transpose_8x8 = transpose_8x8_64_c; break; + default: + return AVERROR_BUG; } } -- 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]
