diff mbox series

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

Message ID 20210222045759.116535-1-andreas.rheinhardt@gmail.com
State Accepted
Commit c7c7aa85b7401fb9e3b7039878260e7120c9db06
Headers show
Series [FFmpeg-devel] avutil/tx: Fix declaration after statement | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Andreas Rheinhardt Feb. 22, 2021, 4:57 a.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
---
 libavutil/tx.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Comments

Paul B Mahol Feb. 22, 2021, 7:56 a.m. UTC | #1
lgtm
diff mbox series

Patch

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++) {