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; } /**