diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-06-28 12:48:05 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-07-03 11:41:23 +0200 |
commit | 563c2ed272c6c48c9e703e5d45a153eca113f28c (patch) | |
tree | b50d63d6b63f82340d136b34192ce5a5feac2680 /libavcodec | |
parent | a88e8341cc70dda052e332fc189b9ffe692a8e4d (diff) | |
download | ffmpeg-563c2ed272c6c48c9e703e5d45a153eca113f28c.tar.gz |
avcodec/qoidec: Remove unused-but-set variable
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/qoidec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/qoidec.c b/libavcodec/qoidec.c index 8a119f7606..1e052f659b 100644 --- a/libavcodec/qoidec.c +++ b/libavcodec/qoidec.c @@ -69,10 +69,9 @@ static int qoi_decode_frame(AVCodecContext *avctx, AVFrame *p, dst = p->data[0]; 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) { off_x = 0; - off_y++; dst += p->linesize[0]; } if (run > 0) { |