Commit 43e30f49 authored by Yaowu Xu's avatar Yaowu Xu

Replace aom_malloc with aom_memalign

This fixes a segfault in nightly tests for 32-bit clang builds.

Change-Id: Ie6de357443bc5bc5f3180791f34fce2566c242a9
parent 1b156ac5
......@@ -1174,7 +1174,7 @@ void av1_pick_filter_restoration(const YV12_BUFFER_CONFIG *src, AV1_COMP *cpi) {
assert(ntiles[1] <= ntiles[0]);
RestUnitSearchInfo *rusi =
(RestUnitSearchInfo *)aom_malloc(sizeof(*rusi) * ntiles[0]);
(RestUnitSearchInfo *)aom_memalign(16, sizeof(*rusi) * ntiles[0]);
RestSearchCtxt rsc;
for (int plane = AOM_PLANE_Y; plane <= AOM_PLANE_V; ++plane) {
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