summaryrefslogtreecommitdiff
path: root/vp9/encoder
diff options
context:
space:
mode:
authorAℓex Converse <aconverse@google.com>2015-07-24 17:38:45 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-07-24 17:38:45 +0000
commita60e0c15bc714c62ac3aa53680f940ce90eb0db4 (patch)
tree8dbec234241ce8e6cdad9d1cdc8559434039163b /vp9/encoder
parentb4297bb12239bf213b3bcd302f9e411917a2087a (diff)
parente905da6f9c573de4de7c3b631697b553922d169b (diff)
downloadlibvpx-a60e0c15bc714c62ac3aa53680f940ce90eb0db4.tar
libvpx-a60e0c15bc714c62ac3aa53680f940ce90eb0db4.tar.gz
libvpx-a60e0c15bc714c62ac3aa53680f940ce90eb0db4.tar.bz2
libvpx-a60e0c15bc714c62ac3aa53680f940ce90eb0db4.zip
Merge "Allocate four |zcoeff_blk| for sub8x8 contexts."
Diffstat (limited to 'vp9/encoder')
-rw-r--r--vp9/encoder/vp9_context_tree.c2
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],