Commit 885542bc authored by michael's avatar michael

Replace /2 by >>1 in decode_cabac_mb_dqp()

3 cpu cycles speed up on pentium dual.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16233 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 77c8158a
......@@ -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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment