Browse Source

avcodec/qoidec: Remove unused-but-set variable

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

+ 1 - 2
libavcodec/qoidec.c

@@ -69,10 +69,9 @@ static int qoi_decode_frame(AVCodecContext *avctx, AVFrame *p,
 
 
     dst = p->data[0];
     dst = p->data[0];
     len = width * height * channels;
     len = width * height * channels;
-    for (int n = 0, off_x = 0, off_y = 0; n < len; n += channels, off_x++) {
+    for (int n = 0, off_x = 0; n < len; n += channels, off_x++) {
         if (off_x >= width) {
         if (off_x >= width) {
             off_x = 0;
             off_x = 0;
-            off_y++;
             dst += p->linesize[0];
             dst += p->linesize[0];
         }
         }
         if (run > 0) {
         if (run > 0) {