Revision ce611a27 libavcodec/snow.h

View differences:

libavcodec/snow.h
165 165

  
166 166
static av_always_inline void snow_horizontal_compose_liftS_lead_out(int i, DWTELEM * dst, DWTELEM * src, DWTELEM * ref, int width, int w){
167 167
        for(; i<w; i++){
168
            dst[i] = src[i] + ((ref[i] + ref[(i+1)]+W_BO-1 + 4 * src[i]) >> W_BS);
168
            dst[i] = src[i] + ((ref[i] + ref[(i+1)]+W_BO + 4 * src[i]) >> W_BS);
169 169
        }
170 170

  
171 171
        if(width&1){
172
            dst[w] = src[w] + ((2 * ref[w] + W_BO-1 + 4 * src[w]) >> W_BS);
172
            dst[w] = src[w] + ((2 * ref[w] + W_BO + 4 * src[w]) >> W_BS);
173 173
        }
174 174
}
175 175

  

Also available in: Unified diff