Commit e58781d3 authored by Nathan Egge's avatar Nathan Egge Committed by Yaowu Xu
Browse files

Fix failing TestBitIO test with --enable-daala_ec.

Change-Id: I6a885b7c6315261d67a9c2fcde914206b8301f4a
parent b244f396
...@@ -68,11 +68,13 @@ TEST(AV1, TestBitIO) { ...@@ -68,11 +68,13 @@ TEST(AV1, TestBitIO) {
aom_stop_encode(&bw); aom_stop_encode(&bw);
#if !CONFIG_DAALA_EC
// First bit should be zero // First bit should be zero
GTEST_ASSERT_EQ(bw_buffer[0] & 0x80, 0); GTEST_ASSERT_EQ(bw_buffer[0] & 0x80, 0);
#endif
aom_reader br; aom_reader br;
aom_reader_init(&br, bw_buffer, kBufferSize, NULL, NULL); aom_reader_init(&br, bw_buffer, bw.pos, NULL, NULL);
bit_rnd.Reset(random_seed); bit_rnd.Reset(random_seed);
for (int i = 0; i < kBitsToTest; ++i) { for (int i = 0; i < kBitsToTest; ++i) {
if (bit_method == 2) { if (bit_method == 2) {
......
Supports Markdown
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