From 0a5f09fededb4838e6e619857861047621da835c Mon Sep 17 00:00:00 2001 From: vitor Date: Mon, 23 Jun 2008 20:13:07 +0000 Subject: [PATCH] Simplify t_sqrt() git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13918 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- libavcodec/ra144.c | 4 ++-- 1 file 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; } /** -- 2.11.4.GIT