mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 13:10:37 +00:00
get rid of an if() 1 cpu cycle faster.
Originally committed as revision 21889 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
e69bfde6b2
commit
f4ce853125
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user