Commit f4ce8531 authored by Michael Niedermayer's avatar Michael Niedermayer

get rid of an if() 1 cpu cycle faster.

Originally committed as revision 21889 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent e69bfde6
......@@ -937,8 +937,7 @@ static int decode_cabac_mb_mvd( H264Context *h, int list, int n, int l ) {
}
}
while( k-- ) {
if( get_cabac_bypass( &h->cabac ) )
mvd += 1 << k;
mvd += get_cabac_bypass( &h->cabac )<<k;
}
}
return get_cabac_bypass_sign( &h->cabac, -mvd );
......
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