Commit f6b7e037 authored by Jingning Han's avatar Jingning Han

Initialize the full buffer in TxbTest

Properly initialize all the buffer units before starting SSE2/C
match test.

BUG=aomedia:1115

Change-Id: I39f98d0beaaafe3bcc10101ce77c4ed38a915688
parent a1b605c3
......@@ -63,7 +63,7 @@ class TxbTest : public ::testing::TestWithParam<GetLevelCountsFunc> {
const int width = tx_size_wide[tx_size];
const int height = tx_size_high[tx_size];
levels_ = set_levels(levels_buf_, width);
memset(levels_buf_, 0, sizeof(*levels_buf_) * MAX_TX_SQUARE);
memset(levels_buf_, 0, sizeof(levels_buf_));
for (int i = 0; i < kNumTests && !result; ++i) {
InitLevels(width, height, i);
......@@ -89,7 +89,7 @@ class TxbTest : public ::testing::TestWithParam<GetLevelCountsFunc> {
const int width = tx_size_wide[tx_size];
const int height = tx_size_high[tx_size];
levels_ = set_levels(levels_buf_, width);
memset(levels_buf_, 0, sizeof(*levels_buf_) * MAX_TX_SQUARE);
memset(levels_buf_, 0, sizeof(levels_buf_));
InitLevels(width, height, 0);
aom_usec_timer_start(&timer);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment