Mercurial > libavcodec.hg
changeset 8398:5ffdec2cd80c libavcodec
Simplify ctx update in decode_cabac_mb_dqp().
no speed change
author | michael |
---|---|
date | Fri, 19 Dec 2008 02:00:33 +0000 |
parents | 81c6cec28a62 |
children | 3019af3f98fa |
files | h264.c |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/h264.c Fri Dec 19 01:50:20 2008 +0000 +++ b/h264.c Fri Dec 19 02:00:33 2008 +0000 @@ -4959,10 +4959,7 @@ int val = 0; while( get_cabac_noinline( &h->cabac, &h->cabac_state[60 + ctx] ) ) { - if( ctx < 2 ) - ctx = 2; - else - ctx = 3; + ctx= 2+(ctx>>1); val++; if(val > 102) //prevent infinite loop return INT_MIN;