diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2006-12-17 15:26:50 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2006-12-17 15:26:50 +0000 |
commit | c29ff23c2a4598c567e6428a25e56c9c6f68320b (patch) | |
tree | 7438668e76870a31f88eb0cd50de43a067505a85 /libavcodec | |
parent | af6a403a0553ba37f07f475a2f000aad337d38a4 (diff) | |
download | ffmpeg-streaming-c29ff23c2a4598c567e6428a25e56c9c6f68320b.zip ffmpeg-streaming-c29ff23c2a4598c567e6428a25e56c9c6f68320b.tar.gz |
small optimization
Originally committed as revision 7327 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/vp6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vp6.c b/libavcodec/vp6.c index b7ff004..bc0ce81 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, |