aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vp6.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2006-12-17 15:26:50 +0000
committerAurelien Jacobs <aurel@gnuage.org>2006-12-17 15:26:50 +0000
commitc29ff23c2a4598c567e6428a25e56c9c6f68320b (patch)
tree7438668e76870a31f88eb0cd50de43a067505a85 /libavcodec/vp6.c
parentaf6a403a0553ba37f07f475a2f000aad337d38a4 (diff)
downloadffmpeg-c29ff23c2a4598c567e6428a25e56c9c6f68320b.tar.gz
small optimization
Originally committed as revision 7327 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vp6.c')
-rw-r--r--libavcodec/vp6.c2
1 files changed, 1 insertions, 1 deletions
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,