]> git.sesse.net Git - ffmpeg/commitdiff
avutil/tx: Fix declaration after statement
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 22 Feb 2021 04:57:14 +0000 (05:57 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 22 Feb 2021 09:03:32 +0000 (10:03 +0100)
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavutil/tx.c

index 49d5e125ae914539ebea53c9a5f3f9d4e79a7c91..4a5ec6975f25f2c61ae69424fd433b4803656aa6 100644 (file)
@@ -115,14 +115,13 @@ int ff_tx_gen_ptwo_inplace_revtab_idx(AVTXContext *s)
         return AVERROR(ENOMEM);
 
     for (int d = 1; d < s->m; d++) {
-        int src = d;
+        int src = d, start_src = src;
         int dst = s->revtab[src];
+        int found = 0;
 
         if (dst <= src)
             continue;
 
-        int found = 0;
-        int start_src = src;
         do {
             src = dst;
             for (int j = 0; j < nb_inplace_idx; j++) {