Commit dae280d5 authored by Johann's avatar Johann
Browse files

Align structures in quantize test

MACROBLOCKD structures require alignment.

This fixes an issue caught by clang IOC.

Change-Id: Ibb5bcc122f531b4302a87e1144e4feaf46c1de64
parent 9c6ce43d
...@@ -69,9 +69,8 @@ class QuantizeTestBase { ...@@ -69,9 +69,8 @@ class QuantizeTestBase {
vp8cx_frame_init_quantizer(vp8_comp_); vp8cx_frame_init_quantizer(vp8_comp_);
// Copy macroblockd from the reference to get pre-set-up dequant values. // Copy macroblockd from the reference to get pre-set-up dequant values.
macroblockd_dst_ = macroblockd_dst_ = reinterpret_cast<MACROBLOCKD *>(
reinterpret_cast<MACROBLOCKD *>( vpx_memalign(32, sizeof(*macroblockd_dst_)));
vpx_calloc(sizeof(*macroblockd_dst_), 1));
vpx_memcpy(macroblockd_dst_, &vp8_comp_->mb.e_mbd, vpx_memcpy(macroblockd_dst_, &vp8_comp_->mb.e_mbd,
sizeof(*macroblockd_dst_)); sizeof(*macroblockd_dst_));
// Fix block pointers - currently they point to the blocks in the reference // Fix block pointers - currently they point to the blocks in the reference
......
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