declare loop variable outside loop

This commit is contained in:
Yay295 2022-08-21 17:44:11 -05:00
parent a63bcfbfb4
commit 31ad2bc133

View File

@ -414,10 +414,11 @@ unpackL4IR(UINT8 *out, const UINT8 *in, int pixels) {
static void static void
unpackLAL(UINT8 *out, const UINT8 *in, int pixels) { unpackLAL(UINT8 *out, const UINT8 *in, int pixels) {
int i;
UINT8 *in1 = in; UINT8 *in1 = in;
UINT8 *in2 = in + pixels; UINT8 *in2 = in + pixels;
/* LA, line interleaved */ /* LA, line interleaved */
for (int i = 0; i < pixels; ++i) { for (i = 0; i < pixels; ++i) {
*out++ = *in1++; *out++ = *in1++;
*out++ = *in2++; *out++ = *in2++;
} }