提交 1aea5d35 编写于 作者: M Michael Niedermayer

Simplify ctx update in decode_cabac_mb_dqp().

no speed change

Originally committed as revision 16232 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 7cfca0df
......@@ -4959,10 +4959,7 @@ static int decode_cabac_mb_dqp( H264Context *h) {
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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册