ref: fa84acb441a17fe969c40b99f182865747ddba1f
parent: 33a9d53c1037ab0168ef982d6a90cbdae58c2209
author: Alex Converse <[email protected]>
date: Thu Jul 23 11:07:35 EDT 2015
Allocate eobs array per txblock and not per pixel. Change-Id: I5368f5fc7283420c38d5bd85e3077b761d94ace6
--- 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];