Mercurial > libavcodec.hg
changeset 11274:f4b0ebc8c9ad libavcodec
switch back to (amvd>2)+(amvd>32), its 5 cpu cycles faster now.
author | michael |
---|---|
date | Wed, 24 Feb 2010 18:16:48 +0000 |
parents | a2cb557201bb |
children | 63d329cd8d80 |
files | h264_cabac.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/h264_cabac.c Wed Feb 24 18:06:02 2010 +0000 +++ b/h264_cabac.c Wed Feb 24 18:16:48 2010 +0000 @@ -912,7 +912,7 @@ static int decode_cabac_mb_mvd( H264Context *h, int ctxbase, int amvd ) { int mvd; - if(!get_cabac(&h->cabac, &h->cabac_state[ctxbase+FFMIN(((amvd+28)*17)>>9,2)])) + if(!get_cabac(&h->cabac, &h->cabac_state[ctxbase+(amvd>2)+(amvd>32)])) return 0; mvd= 1;