shithub: libvpx

Download patch

ref: a60e0c15bc714c62ac3aa53680f940ce90eb0db4
parent: b4297bb12239bf213b3bcd302f9e411917a2087a
parent: e905da6f9c573de4de7c3b631697b553922d169b
author: Aℓex Converse <[email protected]>
date: Fri Jul 24 13:38:45 EDT 2015

Merge "Allocate four |zcoeff_blk| for sub8x8 contexts."

--- a/vp9/encoder/vp9_context_tree.c
+++ b/vp9/encoder/vp9_context_tree.c
@@ -26,7 +26,7 @@
   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],