shithub: libvpx

Download patch

ref: 09fb253b3951baab6f9384bbf1b93496908340a4
parent: 8fc5774f8bbb14d68bc3a8b460b4e0ab9dd26edd
parent: ef50e48323078c823e993aedd087fe25e0afb7f1
author: Ronald S. Bultje <rbultje@google.com>
date: Mon Oct 22 07:18:01 EDT 2012

Merge "Invert SB probability." into experimental

--- a/vp8/encoder/bitstream.c
+++ b/vp8/encoder/bitstream.c
@@ -2561,7 +2561,7 @@
     /* sb mode probability */
     const int sb_max = (((pc->mb_rows + 1) >> 1) * ((pc->mb_cols + 1) >> 1));
 
-    pc->sb_coded = get_prob(cpi->sb_count, sb_max);
+    pc->sb_coded = get_prob(sb_max - cpi->sb_count, sb_max);
     vp8_write_literal(&header_bc, pc->sb_coded, 8);
   }
 #endif