mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-19 19:03:00 +02:00
Simplify t_sqrt()
Originally committed as revision 13918 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
+2
-2
@@ -61,13 +61,13 @@ static int ra144_decode_init(AVCodecContext * avctx)
|
||||
*/
|
||||
static int t_sqrt(unsigned int x)
|
||||
{
|
||||
int s = 0;
|
||||
int s = 2;
|
||||
while (x > 0xfff) {
|
||||
s++;
|
||||
x = x >> 2;
|
||||
}
|
||||
|
||||
return (ff_sqrt(x << 20) << s) << 2;
|
||||
return ff_sqrt(x << 20) << s;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user