Commit 6690074c authored by Yaowu Xu's avatar Yaowu Xu
Browse files

Add memset for a stack array

This avoids a valgrind warning of "use of uninitialized memory".

Change-Id: I4a0e6540b704a9cf532cf894101779277ec66ba4
parent 6731510d
......@@ -289,6 +289,7 @@ void av1_selfguided_restoration_sse4_1(const uint8_t *dgd8, int width,
const sgr_params_type *params,
int bit_depth, int highbd) {
memset(buf, 0, sizeof(buf));
const int width_ext = width + 2 * SGRPROJ_BORDER_HORZ;
const int height_ext = height + 2 * SGRPROJ_BORDER_VERT;
Markdown is supported
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