From c29ff23c2a4598c567e6428a25e56c9c6f68320b Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Sun, 17 Dec 2006 15:26:50 +0000 Subject: [PATCH] small optimization Originally committed as revision 7327 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/vp6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/vp6.c b/libavcodec/vp6.c index b7ff004cc5..bc0ce817b1 100644 --- a/libavcodec/vp6.c +++ b/libavcodec/vp6.c @@ -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,