提交 a5b807a6 编写于 作者: M Michael Niedermayer

Replace /2 by >>1 in decode_cabac_mb_dqp()

3 cpu cycles speed up on pentium dual.

Originally committed as revision 16233 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 1aea5d35
......@@ -4966,9 +4966,9 @@ static int decode_cabac_mb_dqp( H264Context *h) {
}
if( val&0x01 )
return (val + 1)/2;
return (val + 1)>>1 ;
else
return -(val + 1)/2;
return -((val + 1)>>1);
}
static int decode_cabac_p_mb_sub_type( H264Context *h ) {
if( get_cabac( &h->cabac, &h->cabac_state[21] ) )
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册