Browse Source

avcodec/j2kenc: Remove unused-but-set variable

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Andreas Rheinhardt 2 years ago
parent
commit
a88e8341cc
1 changed files with 0 additions and 2 deletions
  1. 0 2
      libavcodec/j2kenc.c

+ 0 - 2
libavcodec/j2kenc.c

@@ -288,13 +288,11 @@ static void tag_tree_code(Jpeg2000EncoderContext *s, Jpeg2000TgtNode *node, int
 /** update the value in node */
 static void tag_tree_update(Jpeg2000TgtNode *node)
 {
-    int lev = 0;
     while (node->parent){
         if (node->parent->val <= node->val)
             break;
         node->parent->val = node->val;
         node = node->parent;
-        lev++;
     }
 }