Commit baec7c89 authored by Luc Trudeau's avatar Luc Trudeau

[CFL] Fix memset on fixed-size array

Change-Id: Ida78c0ab57f1293d6de2ac674fdca0c9e9361c2b
parent 9d4cbb8b
......@@ -21,7 +21,7 @@ void cfl_init(CFL_CTX *cfl, AV1_COMMON *cm) {
aom_internal_error(&cm->error, AOM_CODEC_UNSUP_BITSTREAM,
"Only 4:4:4 and 4:2:0 are currently supported by CfL");
}
memset(&cfl->y_pix, 0, sizeof(uint8_t) * MAX_SB_SQUARE);
memset(&cfl->y_pix, 0, sizeof(cfl->y_pix));
cfl->subsampling_x = cm->subsampling_x;
cfl->subsampling_y = cm->subsampling_y;
cfl->are_parameters_computed = 0;
......
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