[FFmpeg-cvslog] r13918 - trunk/libavcodec/ra144.c

vitor subversion
Mon Jun 23 22:13:07 CEST 2008


Author: vitor
Date: Mon Jun 23 22:13:07 2008
New Revision: 13918

Log:
Simplify t_sqrt()

Modified:
   trunk/libavcodec/ra144.c

Modified: trunk/libavcodec/ra144.c
==============================================================================
--- trunk/libavcodec/ra144.c	(original)
+++ trunk/libavcodec/ra144.c	Mon Jun 23 22:13:07 2008
@@ -61,13 +61,13 @@ static int ra144_decode_init(AVCodecCont
  */
 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;
 }
 
 /**




More information about the ffmpeg-cvslog mailing list