Simplify ctx update in decode_cabac_mb_dqp().

no speed change

Originally committed as revision 16232 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2008-12-19 02:00:33 +00:00
parent 7cfca0dfd8
commit 1aea5d35e5

View File

@ -4959,10 +4959,7 @@ static int decode_cabac_mb_dqp( H264Context *h) {
int val = 0; int val = 0;
while( get_cabac_noinline( &h->cabac, &h->cabac_state[60 + ctx] ) ) { while( get_cabac_noinline( &h->cabac, &h->cabac_state[60 + ctx] ) ) {
if( ctx < 2 ) ctx= 2+(ctx>>1);
ctx = 2;
else
ctx = 3;
val++; val++;
if(val > 102) //prevent infinite loop if(val > 102) //prevent infinite loop
return INT_MIN; return INT_MIN;