Commit b1e9cb29 authored by Tristan Matthews's avatar Tristan Matthews Committed by Tristan Matthews
Browse files

boolcoder_test: fix read of uninitialized data

Only read bits that were actually written.

Change-Id: Id62c52b7804cbfb401e6e7388201406bc899ea5d
parent a250cef2
...@@ -120,7 +120,7 @@ TEST(AV1, TestTell) { ...@@ -120,7 +120,7 @@ TEST(AV1, TestTell) {
} }
aom_stop_encode(&bw); aom_stop_encode(&bw);
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);
uint32_t last_tell = aom_reader_tell(&br); uint32_t last_tell = aom_reader_tell(&br);
uint32_t last_tell_frac = aom_reader_tell_frac(&br); uint32_t last_tell_frac = aom_reader_tell_frac(&br);
double frac_diff_total = 0; double frac_diff_total = 0;
......
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