Align threading LFWorkerData to 32 bytes.
authorYaowu Xu <yaowu@google.com>
Mon, 24 Mar 2014 19:48:27 +0000 (12:48 -0700)
committerYaowu Xu <yaowu@google.com>
Mon, 24 Mar 2014 19:48:27 +0000 (12:48 -0700)
This is to silent a number misalignment warning reported by valgrind.

Change-Id: Ia47a06010b28d7a88dde21f3e4ccb9308fc6f8cf

vp9/decoder/vp9_decodeframe.c

index 5e1ed5c..dd1b95f 100644 (file)
@@ -1338,7 +1338,8 @@ int vp9_decode_frame(VP9D_COMP *pbi,
   pbi->do_loopfilter_inline =
       (cm->log2_tile_rows | cm->log2_tile_cols) == 0 && cm->lf.filter_level;
   if (pbi->do_loopfilter_inline && pbi->lf_worker.data1 == NULL) {
-    CHECK_MEM_ERROR(cm, pbi->lf_worker.data1, vpx_malloc(sizeof(LFWorkerData)));
+    CHECK_MEM_ERROR(cm, pbi->lf_worker.data1,
+                    vpx_memalign(32, sizeof(LFWorkerData)));
     pbi->lf_worker.hook = (VP9WorkerHook)vp9_loop_filter_worker;
     if (pbi->oxcf.max_threads > 1 && !vp9_worker_reset(&pbi->lf_worker)) {
       vpx_internal_error(&cm->error, VPX_CODEC_ERROR,