aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ra144.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-06-23 20:13:07 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-06-23 20:13:07 +0000
commit70e708677e1753eeded6d42ca3adb859d22c4f64 (patch)
tree9eaaead0f61d8aa19635c3c58338c26f1dc14251 /libavcodec/ra144.c
parent89a2713e660688175a40ce93e470b24421d27682 (diff)
downloadffmpeg-70e708677e1753eeded6d42ca3adb859d22c4f64.tar.gz
Simplify t_sqrt()
Originally committed as revision 13918 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ra144.c')
-rw-r--r--libavcodec/ra144.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/ra144.c b/libavcodec/ra144.c
index fb31714511..69c286e272 100644
--- a/libavcodec/ra144.c
+++ b/libavcodec/ra144.c
@@ -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;
}
/**