shithub: libvpx

Download patch

ref: 0437a885a84fb620e337b277277a4e9fa7c57b01
parent: 9525a59f21905760f40d117e7d78dd56b8cc80b0
author: Angie Chiang <angiebird@google.com>
date: Thu Jan 10 17:44:01 EST 2019

Correct pyramid_mv_arr's memory size

Change-Id: Id99ca6fc846ebe11a9f5363da4e6449e976303a1

--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -6476,7 +6476,7 @@
         CHECK_MEM_ERROR(
             cm, cpi->tpl_stats[frame].pyramid_mv_arr[rf_idx][sqr_bsize],
             vpx_calloc(
-                mi_rows * mi_cols,
+                mi_rows * mi_cols * 4,
                 sizeof(
                     *cpi->tpl_stats[frame].pyramid_mv_arr[rf_idx][sqr_bsize])));
       }