summaryrefslogtreecommitdiff
path: root/test/encode_test_driver.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/encode_test_driver.cc')
-rw-r--r--test/encode_test_driver.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/encode_test_driver.cc b/test/encode_test_driver.cc
index 005a4b9c3..22e3f0590 100644
--- a/test/encode_test_driver.cc
+++ b/test/encode_test_driver.cc
@@ -128,6 +128,8 @@ static bool compare_img(const vpx_image_t *img1, const vpx_image_t *img2) {
bool match = (img1->fmt == img2->fmt) && (img1->cs == img2->cs) &&
(img1->d_w == img2->d_w) && (img1->d_h == img2->d_h);
+ if (!match) return false;
+
const unsigned int width_y = img1->d_w;
const unsigned int height_y = img1->d_h;
unsigned int i;