Commit 9578bef90f for ffmpeg
commit 9578bef90ff889c26e5aec2eaa2ec57ba1c1384a
Author: zhang xingxing <2388969553@qq.com>
Date: Mon Sep 21 06:12:14 2026 +0200
avfilter/vf_huesaturation: use the red weight in transform_point()
Found-by: zhang xingxing
diff --git a/libavfilter/vf_huesaturation.c b/libavfilter/vf_huesaturation.c
index 6fdb39bafb..92fedf9da7 100644
--- a/libavfilter/vf_huesaturation.c
+++ b/libavfilter/vf_huesaturation.c
@@ -295,7 +295,6 @@ static void transform_point(float matrix[4][4],
float x, float y, float z,
float *tx, float *ty, float *tz)
{
- x = y;
*tx = x * matrix[0][0] + y * matrix[1][0] + z * matrix[2][0] + matrix[3][0];
*ty = x * matrix[0][1] + y * matrix[1][1] + z * matrix[2][1] + matrix[3][1];
*tz = x * matrix[0][2] + y * matrix[1][2] + z * matrix[2][2] + matrix[3][2];