small optimization
authorAurelien Jacobs <aurel@gnuage.org>
Sun, 17 Dec 2006 15:26:50 +0000 (15:26 +0000)
committerAurelien Jacobs <aurel@gnuage.org>
Sun, 17 Dec 2006 15:26:50 +0000 (15:26 +0000)
Originally committed as revision 7327 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/vp6.c

index b7ff004..bc0ce81 100644 (file)
@@ -343,7 +343,7 @@ static int vp6_block_variance(uint8_t *src, int stride)
         }
         src += 2*stride;
     }
-    return (16*square_sum - sum*sum) / (16*16);
+    return (16*square_sum - sum*sum) >> 8;
 }
 
 static void vp6_filter_hv2(vp56_context_t *s, uint8_t *dst, uint8_t *src,