[FFmpeg-devel] [PATCH] avutil/tx: Fix declaration after statement

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Mon Feb 22 06:57:59 EET 2021


Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
---
 libavutil/tx.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/libavutil/tx.c b/libavutil/tx.c
index 49d5e125ae..4a5ec6975f 100644
--- a/libavutil/tx.c
+++ b/libavutil/tx.c
@@ -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++) {
-- 
2.27.0



More information about the ffmpeg-devel mailing list