Commit 77c8158a authored by michael's avatar michael

Simplify ctx update in decode_cabac_mb_dqp().

no speed change


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16232 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2383f1fa
...@@ -4959,10 +4959,7 @@ static int decode_cabac_mb_dqp( H264Context *h) { ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment