Commit e57473ae authored by Sarah Parker's avatar Sarah Parker Committed by James Zern
Browse files

Fix possibility of uninitialized vals in convolve_test

This clears static analysis warnings due to unset values
in the intermediate buffer. This occurs when the intermediate
buffer height is less then the dimensions of the filter.

Change-Id: I73bab842986f5c7a225025e2c9da920694767576
parent 49b5511b
......@@ -106,6 +106,8 @@ void filter_block2d_8_c(const uint8_t *src_ptr, unsigned int src_stride,
(kInterp_Extend - 1) + output_height + kInterp_Extend;
unsigned int i, j;
assert(intermediate_height > 7);
// Size of intermediate_buffer is max_intermediate_height * filter_max_width,
// where max_intermediate_height = (kInterp_Extend - 1) + filter_max_height
// + kInterp_Extend
Supports Markdown
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