]> granicus.if.org Git - libvpx/commitdiff
Correct pyramid_mv_arr's memory size
authorAngie Chiang <angiebird@google.com>
Fri, 11 Jan 2019 06:44:01 +0000 (22:44 -0800)
committerAngie Chiang <angiebird@google.com>
Fri, 11 Jan 2019 06:44:01 +0000 (22:44 -0800)
Change-Id: Id99ca6fc846ebe11a9f5363da4e6449e976303a1

vp9/encoder/vp9_encoder.c

index 557e2b009a544b8f5cc253189470c7380d4733a8..11037cd148fdac0d4fa2bd504c2dac45ee15676f 100644 (file)
@@ -6476,7 +6476,7 @@ static void init_tpl_buffer(VP9_COMP *cpi) {
         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])));
       }