Mercurial > libavcodec.hg
changeset 4042:643cdc58bd69 libavcodec
slightly faster decode_cabac_mb_mvd()
author | michael |
---|---|
date | Thu, 19 Oct 2006 14:54:34 +0000 |
parents | 0113ceb0f953 |
children | 87694a28120c |
files | h264.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 ) {