ref: 3c51b91f378b22c299f0a57e3d4ae603279e1b3c
parent: e0f24601258528b214026a27c91fce913b329654
author: Angie Chiang <[email protected]>
date: Mon Nov 19 09:32:54 EST 2018
Fix scan_build warnings in temporal_filter_test.cc BUG=webm:1575 Change-Id: I4f4236305ebd932515451b1306211154b34678de
--- a/test/temporal_filter_test.cc
+++ b/test/temporal_filter_test.cc
@@ -45,6 +45,11 @@
rounding = 1 << (filter_strength - 1);
}
+ if (a.TopLeftPixel() == NULL || b.TopLeftPixel() == NULL ||
+ diff_sq.TopLeftPixel() == NULL) {
+ assert(0);
+ return;
+ }
// Calculate all the differences. Avoids re-calculating a bunch of extra
// values.
for (int height = 0; height < h; ++height) {