Mercurial > libavcodec.hg
diff h264.c @ 3955:051a9c8b257f libavcodec
5% faster get_cabac()
author | michael |
---|---|
date | Sun, 08 Oct 2006 11:24:37 +0000 |
parents | 00a12ef7d800 |
children | f5f1c9af095d |
line wrap: on
line diff
--- a/h264.c Sun Oct 08 10:11:58 2006 +0000 +++ b/h264.c Sun Oct 08 11:24:37 2006 +0000 @@ -7399,9 +7399,9 @@ pre = clip( ((cabac_context_init_PB[h->cabac_init_idc][i][0] * s->qscale) >>4 ) + cabac_context_init_PB[h->cabac_init_idc][i][1], 1, 126 ); if( pre <= 63 ) - h->cabac_state[i] = 2 * ( 63 - pre ) + 0; + h->cabac_state[i] = 2 * ( 63 - pre ) + 2; else - h->cabac_state[i] = 2 * ( pre - 64 ) + 1; + h->cabac_state[i] = 2 * ( pre - 64 ) + 3; } for(;;){