summaryrefslogtreecommitdiff
path: root/vp9
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2022-04-26 22:18:21 -0700
committerJames Zern <jzern@google.com>2022-04-26 22:22:33 -0700
commite82c5a85c9fcb727a591ffa63fc08bcaf52f9da3 (patch)
treec01d399b293d155758e1ef73cc119bfbef7d5cb2 /vp9
parentb2d57a88086410c8beb3696374764c4e836fe332 (diff)
downloadlibvpx-e82c5a85c9fcb727a591ffa63fc08bcaf52f9da3.tar
libvpx-e82c5a85c9fcb727a591ffa63fc08bcaf52f9da3.tar.gz
libvpx-e82c5a85c9fcb727a591ffa63fc08bcaf52f9da3.tar.bz2
libvpx-e82c5a85c9fcb727a591ffa63fc08bcaf52f9da3.zip
vp9_row_mt_alloc_rd_thresh: check alloc
Change-Id: I6fb7771d9fa6ec54d81f24a02a289e8b852e7332
Diffstat (limited to 'vp9')
-rw-r--r--vp9/encoder/vp9_multi_thread.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/vp9/encoder/vp9_multi_thread.c b/vp9/encoder/vp9_multi_thread.c
index 6078f8975..45659f2a9 100644
--- a/vp9/encoder/vp9_multi_thread.c
+++ b/vp9/encoder/vp9_multi_thread.c
@@ -58,9 +58,10 @@ void vp9_row_mt_alloc_rd_thresh(VP9_COMP *const cpi,
(mi_cols_aligned_to_sb(cm->mi_rows) >> MI_BLOCK_SIZE_LOG2) + 1;
int i;
- this_tile->row_base_thresh_freq_fact =
+ CHECK_MEM_ERROR(
+ cm, this_tile->row_base_thresh_freq_fact,
(int *)vpx_calloc(sb_rows * BLOCK_SIZES * MAX_MODES,
- sizeof(*(this_tile->row_base_thresh_freq_fact)));
+ sizeof(*(this_tile->row_base_thresh_freq_fact))));
for (i = 0; i < sb_rows * BLOCK_SIZES * MAX_MODES; i++)
this_tile->row_base_thresh_freq_fact[i] = RD_THRESH_INIT_FACT;
}