projects
/
platform
/
upstream
/
libvpx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0f2460
)
Fix scan_build warnings in temporal_filter_test.cc
author
Angie Chiang
<angiebird@google.com>
Mon, 19 Nov 2018 22:32:54 +0000
(14:32 -0800)
committer
Angie Chiang
<angiebird@google.com>
Tue, 20 Nov 2018 22:55:52 +0000
(14:55 -0800)
BUG=webm:1575
Change-Id: I4f4236305ebd932515451b1306211154b34678de
test/temporal_filter_test.cc
patch
|
blob
|
history
diff --git
a/test/temporal_filter_test.cc
b/test/temporal_filter_test.cc
index 655a36be9a4c8986826bad19323e3bd62d8cd1c3..b01f8ad2ebbe27831303410fa5cfe2943e639d11 100644
(file)
--- a/
test/temporal_filter_test.cc
+++ b/
test/temporal_filter_test.cc
@@
-45,6
+45,11
@@
void reference_filter(const Buffer<uint8_t> &a, const Buffer<uint8_t> &b, int w,
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) {