Commit bcf25cda authored by Yaowu Xu's avatar Yaowu Xu

Align a buffer for simd operation


Change-Id: I11fdc9dbc4b0f4484e82ab1662ac329b8b7f2d6c
parent fb8fc2bd
...@@ -98,7 +98,7 @@ void av1_alloc_restoration_buffers(AV1_COMMON *cm) { ...@@ -98,7 +98,7 @@ void av1_alloc_restoration_buffers(AV1_COMMON *cm) {
ROUND_POWER_OF_TWO(cm->height, cm->subsampling_y)); ROUND_POWER_OF_TWO(cm->height, cm->subsampling_y));
aom_free(cm->rst_internal.tmpbuf); aom_free(cm->rst_internal.tmpbuf);
CHECK_MEM_ERROR(cm, cm->rst_internal.tmpbuf, CHECK_MEM_ERROR(cm, cm->rst_internal.tmpbuf,
(int32_t *)aom_malloc(RESTORATION_TMPBUF_SIZE)); (int32_t *)aom_memalign(16, RESTORATION_TMPBUF_SIZE));
} }
void av1_free_restoration_buffers(AV1_COMMON *cm) { void av1_free_restoration_buffers(AV1_COMMON *cm) {
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