changeset 4306:331961478469 libavcodec

small optimization
author aurel
date Sun, 17 Dec 2006 15:26:50 +0000
parents 4e75fbc983c9
children 649e51394b6f
files vp6.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vp6.c	Sun Dec 17 13:11:34 2006 +0000
+++ b/vp6.c	Sun Dec 17 15:26:50 2006 +0000
@@ -343,7 +343,7 @@
         }
         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,