mirror of https://git.ffmpeg.org/ffmpeg.git
Optimize suffix_length computation, 1 cpu cycle speedup.
Originally committed as revision 21431 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
eeb1e92feb
commit
7abc860323
|
@ -470,9 +470,7 @@ static int decode_residual(H264Context *h, GetBitContext *gb, DCTELEM *block, in
|
|||
level_code= (((2+level_code)>>1) ^ mask) - mask;
|
||||
}
|
||||
level[i]= level_code;
|
||||
|
||||
if(suffix_limit[suffix_length] + level_code > 2U*suffix_limit[suffix_length])
|
||||
suffix_length++;
|
||||
suffix_length+= suffix_limit[suffix_length] + level_code > 2U*suffix_limit[suffix_length];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue