shithub: libvpx

Download patch

ref: 9954d05ca6b9c0cec09ca26ec0d7500148656e19
parent: 315e3c25186292ad7cb00d9d92b3b2f850d37d40
author: John Koleszar <jkoleszar@google.com>
date: Wed Feb 9 07:50:17 EST 2011

correct cost for implicit bit in mvs

Use 0xFFF0 vice 240 (0xF0) for determining whether the sometimes
implicit bit 3 will be transmitted. This is consistent with the decoder
and encode_mvcomponent().

Change-Id: Ic1304d0ab56844bed8236edd1c5243a6767fc6b1

--- a/vp8/encoder/encodemv.c
+++ b/vp8/encoder/encodemv.c
@@ -128,7 +128,7 @@
 
         while (--i > 3);
 
-        if (x & 240)
+        if (x & 0xFFF0)
             cost += vp8_cost_bit(p [MVPbits + 3], (x >> 3) & 1);
     }
 
--