From 498eb9330b1b76391eec5c0de889ee22f443b91f Mon Sep 17 00:00:00 2001 From: lightningterror <18107717+lightningterror@users.noreply.github.com> Date: Fri, 15 Jul 2022 02:39:20 +0200 Subject: [PATCH] USB: Fix array index 'i' is used before limits check warning. Codacy. --- pcsx2/USB/usb-eyetoy/jo_mpeg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/USB/usb-eyetoy/jo_mpeg.cpp b/pcsx2/USB/usb-eyetoy/jo_mpeg.cpp index 97d5cb92f8..7367f1363e 100644 --- a/pcsx2/USB/usb-eyetoy/jo_mpeg.cpp +++ b/pcsx2/USB/usb-eyetoy/jo_mpeg.cpp @@ -148,7 +148,7 @@ static int jo_processDU(jo_bits_t *bits, float A[64], const unsigned char htdc[9 for(; (endpos>0)&&(Q[endpos]==0); --endpos) { /* do nothing */ } for(int i = 1; i <= endpos;) { int run = 0; - while (Q[i]==0 && i