shithub: libvpx

Download patch

ref: 5ed84c2fdf420478c19e1c64982a306159077a8d
parent: adaf77c07505fa23f5ddc70e7b2a533e669027a3
parent: 861a6bbbfdbaf7e1aedff0be9078b76fd0f214b1
author: John Koleszar <jkoleszar@google.com>
date: Mon Oct 22 11:09:33 EDT 2012

Merge "postproc: allocate enough memory for limits buffer"

--- a/vp8/common/alloccommon.c
+++ b/vp8/common/alloccommon.c
@@ -107,8 +107,11 @@
     vpx_memset(oci->post_proc_buffer.buffer_alloc, 128,
                oci->post_proc_buffer.frame_size);
 
-    /* Allocate buffer to store post-processing filter coefficients. */
-    oci->pp_limits_buffer = vpx_memalign(16, 24 * oci->mb_cols);
+    /* Allocate buffer to store post-processing filter coefficients.
+     *
+     * Note: Round up mb_cols to support SIMD reads
+     */
+    oci->pp_limits_buffer = vpx_memalign(16, 24 * ((oci->mb_cols + 1) & ~1));
     if (!oci->pp_limits_buffer)
         goto allocation_fail;
 #endif