mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-22 07:20:45 +00:00
Simplify suffix_length computation, same speed.
Originally committed as revision 21430 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
725b3da981
commit
eeb1e92feb
@ -443,9 +443,7 @@ static int decode_residual(H264Context *h, GetBitContext *gb, DCTELEM *block, in
|
||||
}else{
|
||||
level_code += ((level_code>>31)|1) & -(trailing_ones < 3);
|
||||
|
||||
suffix_length = 1;
|
||||
if(level_code + 3U > 6U)
|
||||
suffix_length++;
|
||||
suffix_length = 1 + (level_code + 3U > 6U);
|
||||
level[trailing_ones]= level_code;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user