Mercurial > libavcodec.hg
diff h264.c @ 3976:27e90123b346 libavcodec
reverse remainder of the failed attempt to optimize *state=c->mps_state[s]
author | michael |
---|---|
date | Mon, 09 Oct 2006 21:14:16 +0000 |
parents | f5f1c9af095d |
children | 72bae00a317f |
line wrap: on
line diff
--- a/h264.c Mon Oct 09 20:51:33 2006 +0000 +++ b/h264.c Mon Oct 09 21:14:16 2006 +0000 @@ -7401,9 +7401,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 ) + 2; + h->cabac_state[i] = 2 * ( 63 - pre ) + 0; else - h->cabac_state[i] = 2 * ( pre - 64 ) + 3; + h->cabac_state[i] = 2 * ( pre - 64 ) + 1; } for(;;){