changeset 5572:c6fac563ec28 libavcodec

simplify
author michael
date Wed, 22 Aug 2007 17:26:49 +0000
parents 134296160fc9
children 204273dd0349
files snow.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/snow.c	Wed Aug 22 15:03:14 2007 +0000
+++ b/snow.c	Wed Aug 22 17:26:49 2007 +0000
@@ -775,7 +775,7 @@
     int i;
 
     assert(shift == 4);
-#define LIFTS(src, ref, inv) ((inv) ? (src) + (((ref) + 4*(src))>>shift): -((-16*4*(src) + 4*(ref) + add + 5 + (5<<27))/(5*16) - (1<<23)))
+#define LIFTS(src, ref, inv) ((inv) ? (src) + (((ref) + 4*(src))>>shift): -((-16*(src) + (ref) + add/4 + 1 + (5<<25))/(5*4) - (1<<23)))
     if(mirror_left){
         dst[0] = LIFTS(src[0], mul*2*ref[0]+add, inverse);
         dst += dst_step;