# HG changeset patch # User michael # Date 1161269674 0 # Node ID 643cdc58bd69b14ee5a687dcc28adf29998f0f0e # Parent 0113ceb0f953e92d9193abf042ab623f0a3332e5 slightly faster decode_cabac_mb_mvd() diff -r 0113ceb0f953 -r 643cdc58bd69 h264.c --- a/h264.c Thu Oct 19 10:33:56 2006 +0000 +++ b/h264.c Thu Oct 19 14:54:34 2006 +0000 @@ -6003,8 +6003,7 @@ mvd += 1 << k; } } - if( get_cabac_bypass( &h->cabac ) ) return -mvd; - else return mvd; + return get_cabac_bypass_sign( &h->cabac, -mvd ); } static int inline get_cabac_cbf_ctx( H264Context *h, int cat, int idx ) {