diff mbox series

[FFmpeg-devel,2/4] avfilter/vf_colormap: Fix declaration-after-statement

Message ID AS8PR01MB7944710D42A3E73F7876D6E18FFC9@AS8PR01MB7944.eurprd01.prod.exchangelabs.com
State Accepted
Commit fdc16fbb7a986f2bb9e959247408fe31eb4dd430
Headers show
Series [FFmpeg-devel,1/4] avfilter/vf_colormap: Properly uninit FFFrameSync, fix leak | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt April 29, 2022, 1:54 a.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavfilter/vf_colormap.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

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;
     }