Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@outlook.com>
---
 libavcodec/qoidec.c | 3 +--
 1 file changed, 1 insertion(+), 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) {
-- 
2.34.1

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to