]> granicus.if.org Git - libvpx/commitdiff
Fix the bool coder test
authorYushin Cho <ycho@mozilla.com>
Fri, 4 Nov 2016 22:39:55 +0000 (15:39 -0700)
committerAlex Converse <aconverse@google.com>
Fri, 4 Nov 2016 23:07:00 +0000 (16:07 -0700)
Fix the bool coder test not to use a probability of 100%.

Change-Id: I799871cb0c48580edf0ee15a6c9931d27591ec99
(cherry picked from commit 9b79f6a3d6ea398e5d51d3d1dd69cbfb1725370e)

test/boolcoder_test.cc

index e2ebdda1f0ece847bb3f94549556c3f026b24cb7..17d78f4521b5d8f6d7483f42515a54c437f7aec9 100644 (file)
@@ -103,7 +103,7 @@ TEST(AV1, TestTell) {
   uint8_t bw_buffer[kBufferSize];
   const int kSymbols = 1024;
   // Coders are noisier at low probabilities, so we start at p = 4.
-  for (int p = 4; p <= 256; p++) {
+  for (int p = 4; p < 256; p++) {
     double probability = p / 256.;
     aom_start_encode(&bw, bw_buffer);
     for (int i = 0; i < kSymbols; i++) {