for (y = start; y < end; y++) {
const int pos = y * s->planewidth[0];
- for (x = 0; x < s->planewidth[p]; x++) {
+ for (x = 0; x < s->planewidth[0]; x++) {
const int x_pos = s->x_pos[pos + x];
const int y_pos = s->y_pos[pos + x];
int avg[4], cmp[4] = { 0 }, src[4];
for (y = start; y < end; y++) {
const int pos = y * s->planewidth[0];
- for (x = 0; x < s->planewidth[p]; x++) {
+ for (x = 0; x < s->planewidth[0]; x++) {
const int x_pos = s->x_pos[pos + x];
const int y_pos = s->y_pos[pos + x];
int avg[4], cmp[4] = { 0 }, src[4];