[FFmpeg-cvslog] avcodec/j2kenc: Remove unused-but-set variable

Andreas Rheinhardt git at videolan.org
Sun Jul 3 12:51:12 EEST 2022


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Tue Jun 28 12:44:14 2022 +0200| [a88e8341cc70dda052e332fc189b9ffe692a8e4d] | committer: Andreas Rheinhardt

avcodec/j2kenc: Remove unused-but-set variable

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a88e8341cc70dda052e332fc189b9ffe692a8e4d
---

 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++;
     }
 }
 



More information about the ffmpeg-cvslog mailing list