changeset 5552:8dcb8c89a661 libavcodec

more stupid double subtractions
author michael
date Mon, 20 Aug 2007 22:26:49 +0000
parents 7eb8c2e68f01
children 3c0c9723ed3c
files snow.h
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/snow.h	Mon Aug 20 22:18:26 2007 +0000
+++ b/snow.h	Mon Aug 20 22:26:49 2007 +0000
@@ -165,11 +165,11 @@
 
 static av_always_inline void snow_horizontal_compose_liftS_lead_out(int i, DWTELEM * dst, DWTELEM * src, DWTELEM * ref, int width, int w){
         for(; i<w; i++){
-            dst[i] = src[i] - (((-(ref[i] + ref[(i+1)])+W_BO) - 4 * src[i]) >> W_BS);
+            dst[i] = src[i] + ((ref[i] + ref[(i+1)]+W_BO-1 + 4 * src[i]) >> W_BS);
         }
 
         if(width&1){
-            dst[w] = src[w] - (((-2 * ref[w] + W_BO) - 4 * src[w]) >> W_BS);
+            dst[w] = src[w] + ((2 * ref[w] + W_BO-1 + 4 * src[w]) >> W_BS);
         }
 }