Remove unnecessary memset in av1_dist_block
The memset was added to silence errors reported in
BUG=aomedia:1363. But can't replay now. Both highbd
case and lowbd case are tested after remove the
memset, no more errors from this pointer.
Removing this memset speedup encoder about 2.7%,
showed by a simple test with default config adn
CONFIG_LOWBITDEPTH=1 encode 20 frames of
foreman_cif.y4m.
Change-Id: Ia4f034f8908f15a652bee5a77e2fd7759ad954b4
diff --git a/av1/encoder/rdopt.c b/av1/encoder/rdopt.c
index eff3f09..d158f22 100644
--- a/av1/encoder/rdopt.c
+++ b/av1/encoder/rdopt.c
@@ -1775,7 +1775,7 @@
blk_row, blk_col, plane_bsize, tx_bsize);
} else {
uint8_t *recon;
- DECLARE_ALIGNED(16, uint16_t, recon16[MAX_TX_SQUARE]) = { 0 };
+ DECLARE_ALIGNED(16, uint16_t, recon16[MAX_TX_SQUARE]);
if (xd->cur_buf->flags & YV12_FLAG_HIGHBITDEPTH)
recon = CONVERT_TO_BYTEPTR(recon16);