shithub: libvpx

Download patch

ref: 54c2854fe2252fa1a6a791fb69a54be160b5a150
parent: 2a67a34f4a9909246fc03febd4f7d07a4fb4bfec
author: James Zern <[email protected]>
date: Wed Oct 30 04:33:09 EDT 2013

vp9/decode: align tile worker data allocation

fixes a crash in assembly on 32-bit linux/windows

Change-Id: I0c27e6c0ece9732b5eb2ee5b59ff42c3c8016c50

--- a/vp9/decoder/vp9_decodframe.c
+++ b/vp9/decoder/vp9_decodframe.c
@@ -963,7 +963,8 @@
 
       vp9_worker_init(worker);
       worker->hook = (VP9WorkerHook)tile_worker_hook;
-      CHECK_MEM_ERROR(cm, worker->data1, vpx_malloc(sizeof(TileWorkerData)));
+      CHECK_MEM_ERROR(cm, worker->data1,
+                      vpx_memalign(32, sizeof(TileWorkerData)));
       CHECK_MEM_ERROR(cm, worker->data2, vpx_malloc(sizeof(TileInfo)));
       if (i < num_workers - 1 && !vp9_worker_reset(worker)) {
         vpx_internal_error(&cm->error, VPX_CODEC_ERROR,