diff --git a/libavfilter/vf_colormap.c b/libavfilter/vf_colormap.c index 9edc89f105..a0d6d7be27 100644 --- a/libavfilter/vf_colormap.c +++ b/libavfilter/vf_colormap.c @@ -129,8 +129,7 @@ static void gauss_solve_triangular(const double *A, const int *p, double *b, int } for(int k = n - 1; k > 0; k--) { - b[k] /= A[k + n * k]; - double t = b[k]; + double t = b[k] /= A[k + n * k]; for (int i = 0; i < k; i++) b[i] -= A[k + n * i] * t; }