diff options
author | Alex Converse <aconverse@google.com> | 2015-07-23 15:43:48 -0700 |
---|---|---|
committer | Alex Converse <aconverse@google.com> | 2015-07-23 15:43:48 -0700 |
commit | e905da6f9c573de4de7c3b631697b553922d169b (patch) | |
tree | ef4ae54c46ee90b31bff82e63614ce2246b1d9d6 /vp9/encoder | |
parent | fa84acb441a17fe969c40b99f182865747ddba1f (diff) | |
download | libvpx-e905da6f9c573de4de7c3b631697b553922d169b.tar libvpx-e905da6f9c573de4de7c3b631697b553922d169b.tar.gz libvpx-e905da6f9c573de4de7c3b631697b553922d169b.tar.bz2 libvpx-e905da6f9c573de4de7c3b631697b553922d169b.zip |
Allocate four |zcoeff_blk| for sub8x8 contexts.
The RD and load save/code grabs it as groups of four. In practice there
is no change to physical allocations becaquse this is backed by a 16-byte
memalign.
Change-Id: I01e89769872300e23227e03dd24a6e229f482025
Diffstat (limited to 'vp9/encoder')
-rw-r--r-- | vp9/encoder/vp9_context_tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vp9/encoder/vp9_context_tree.c b/vp9/encoder/vp9_context_tree.c index 7945ee0ea..fbff9d7a0 100644 --- a/vp9/encoder/vp9_context_tree.c +++ b/vp9/encoder/vp9_context_tree.c @@ -26,7 +26,7 @@ static void alloc_mode_context(VP9_COMMON *cm, int num_4x4_blk, ctx->num_4x4_blk = num_blk; CHECK_MEM_ERROR(cm, ctx->zcoeff_blk, - vpx_calloc(num_4x4_blk, sizeof(uint8_t))); + vpx_calloc(num_blk, sizeof(uint8_t))); for (i = 0; i < MAX_MB_PLANE; ++i) { for (k = 0; k < 3; ++k) { CHECK_MEM_ERROR(cm, ctx->coeff[i][k], |