Commit cc0eeda6 authored by John Koleszar's avatar John Koleszar

Fix mismatch check output

Fixes a condition where the address of the mismatching pixels was not
being found/printed.

Change-Id: Ifac5cd3471bc2437448128591eea7c7b87e2d8fe
parent 9831f205
......@@ -1517,7 +1517,7 @@ static void find_mismatch(vpx_image_t *img1, vpx_image_t *img2,
uloc[0] = uloc[1] = uloc[2] = uloc[3] = -1;
for (i = 0, match = 1; match && i < c_h; i += bsizey) {
for (j = 0; j < match && c_w; j += bsizex) {
for (j = 0; match && j < c_w; j += bsizex) {
int k, l;
int si = mmin(i + bsizey, c_h - i);
int sj = mmin(j + bsizex, c_w - j);
......@@ -1541,7 +1541,7 @@ static void find_mismatch(vpx_image_t *img1, vpx_image_t *img2,
}
vloc[0] = vloc[1] = vloc[2] = vloc[3] = -1;
for (i = 0, match = 1; match && i < c_h; i += bsizey) {
for (j = 0; j < match && c_w; j += bsizex) {
for (j = 0; match && j < c_w; j += bsizex) {
int k, l;
int si = mmin(i + bsizey, c_h - i);
int sj = mmin(j + bsizex, c_w - j);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment