diff mbox series

[FFmpeg-devel,7/8] avcodec/qoidec: Remove unused-but-set variable

Message ID DB6PR0101MB2214C0D1B93A765D1AFA5ED18FB89@DB6PR0101MB2214.eurprd01.prod.exchangelabs.com
State Accepted
Commit 563c2ed272c6c48c9e703e5d45a153eca113f28c
Headers show
Series [FFmpeg-devel,1/8] avformat/bintext: Remove set-but-unused variable | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt June 28, 2022, 11:30 a.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/qoidec.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

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) {