shithub: libvpx

Download patch

ref: 9d9273726b3cab8f09d0b0b29ce83b0756be012f
parent: a68356202d3f4c75194b5ae0efc7facb078cefea
parent: 8f089cbd2ec3899127817c21f137b03844b2e519
author: Yaowu Xu <[email protected]>
date: Mon Aug 3 14:43:55 EDT 2015

Merge "Correct the allocation size for ssim_vars"

--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -1709,7 +1709,8 @@
   }
 
   if (cpi->b_calculate_consistency) {
-    cpi->ssim_vars = vpx_malloc(sizeof(*cpi->ssim_vars)*720*480);
+    cpi->ssim_vars = vpx_malloc(sizeof(*cpi->ssim_vars) *
+                                4 * cpi->common.mi_rows * cpi->common.mi_cols);
     cpi->worst_consistency = 100.0;
   }