summaryrefslogtreecommitdiff
path: root/libavcodec/j2kenc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-12-01 15:22:05 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-12-03 16:09:14 +0100
commit01d158d1c8295474fa2034612487b36a47adfd1d (patch)
treebcf43db50fc4b551283187b943e0fb7b50bb1685 /libavcodec/j2kenc.c
parenta4798a5d5109cd9c1b5682efe19660e825da97e6 (diff)
all: Remove unused-but-set variables
Newer versions of Clang detect this and emit warnings for it. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/j2kenc.c')
-rw-r--r--libavcodec/j2kenc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/j2kenc.c b/libavcodec/j2kenc.c
index fa6fc208f5..c06752f43a 100644
--- a/libavcodec/j2kenc.c
+++ b/libavcodec/j2kenc.c
@@ -1272,7 +1272,6 @@ static void makelayers(Jpeg2000EncoderContext *s, Jpeg2000Tile *tile)
double min = DBL_MAX;
double max = 0;
double thresh;
- int tile_disto = 0;
Jpeg2000CodingStyle *codsty = &s->codsty;
@@ -1294,7 +1293,6 @@ static void makelayers(Jpeg2000EncoderContext *s, Jpeg2000Tile *tile)
int dr;
double dd, drslope;
- tile_disto += pass->disto;
if (passno == 0) {
dr = (int32_t)pass->rate;
dd = pass->disto;