shithub: libvpx

Download patch

ref: b4297bb12239bf213b3bcd302f9e411917a2087a
parent: fd660f0164a2857ef2d3ec170f4efe6eccfeb60f
parent: fa84acb441a17fe969c40b99f182865747ddba1f
author: Aℓex Converse <[email protected]>
date: Fri Jul 24 13:38:32 EDT 2015

Merge "Allocate eobs array per txblock and not per pixel."

--- a/vp9/encoder/vp9_context_tree.c
+++ b/vp9/encoder/vp9_context_tree.c
@@ -36,7 +36,7 @@
       CHECK_MEM_ERROR(cm, ctx->dqcoeff[i][k],
                       vpx_memalign(16, num_pix * sizeof(*ctx->dqcoeff[i][k])));
       CHECK_MEM_ERROR(cm, ctx->eobs[i][k],
-                      vpx_memalign(16, num_pix * sizeof(*ctx->eobs[i][k])));
+                      vpx_memalign(16, num_blk * sizeof(*ctx->eobs[i][k])));
       ctx->coeff_pbuf[i][k]   = ctx->coeff[i][k];
       ctx->qcoeff_pbuf[i][k]  = ctx->qcoeff[i][k];
       ctx->dqcoeff_pbuf[i][k] = ctx->dqcoeff[i][k];