From: Nathan E. Egge Date: Tue, 11 Oct 2016 21:46:03 +0000 (-0400) Subject: Fix failing TestBitIO test with --enable-daala_ec. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e58781d32936f4212b58a64481eb8320955e8ac3;p=libvpx Fix failing TestBitIO test with --enable-daala_ec. Change-Id: I6a885b7c6315261d67a9c2fcde914206b8301f4a --- diff --git a/test/boolcoder_test.cc b/test/boolcoder_test.cc index ef295badc..c0e6d48ce 100644 --- a/test/boolcoder_test.cc +++ b/test/boolcoder_test.cc @@ -68,11 +68,13 @@ TEST(AV1, TestBitIO) { aom_stop_encode(&bw); +#if !CONFIG_DAALA_EC // First bit should be zero GTEST_ASSERT_EQ(bw_buffer[0] & 0x80, 0); +#endif 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); for (int i = 0; i < kBitsToTest; ++i) { if (bit_method == 2) {