Coding path sync test: fix picture comparison
Change-Id: Iee4957038d61c14cf8fa3f9c094b579c82c20603
diff --git a/test/coding_path_sync.cc b/test/coding_path_sync.cc
index 833563a..d1c4363 100644
--- a/test/coding_path_sync.cc
+++ b/test/coding_path_sync.cc
@@ -101,11 +101,11 @@
for (int r = 0; r < h; ++r) {
for (int c = 0; c < w; ++c) {
- const int offset = r * img->stride[plane] + c;
+ unsigned char *row = img->planes[plane] + r * img->stride[plane];
if (img->fmt & AOM_IMG_FMT_HIGHBITDEPTH)
- bytes.push_back(img->planes[plane][offset * 2]);
+ bytes.push_back(row[c * 2]);
else
- bytes.push_back(img->planes[plane][offset]);
+ bytes.push_back(row[c]);
}
}
}