[FFmpeg-devel] [PATCH 6/8] avcodec/j2kenc: Remove unused-but-set variable

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Tue Jun 28 14:30:08 EEST 2022


Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
 libavcodec/j2kenc.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libavcodec/j2kenc.c b/libavcodec/j2kenc.c
index 0b761d0b00..ce77a6d964 100644
--- a/libavcodec/j2kenc.c
+++ b/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++;
     }
 }
 
-- 
2.34.1



More information about the ffmpeg-devel mailing list