diff --git a/source/vsnlm.cpp b/source/vsnlm.cpp index 3bd25ab..77d25d6 100644 --- a/source/vsnlm.cpp +++ b/source/vsnlm.cpp @@ -497,19 +497,19 @@ static inline void nlmAccumulation( if (bits == 32) { nlmAccumulationDispatch_f32( weightp, wdstp, max_weightp, - castPtrs(srcp_bwd), castPtrs(srcp_bwd), temp_bwd, temp_bwd, + castPtrs(srcp_bwd), castPtrs(srcp_fwd), temp_bwd, temp_fwd, offset_x, offset_y, width, height, stride, channels ); } else if (bits <= 8) { nlmAccumulationDispatch_u8( weightp, wdstp, max_weightp, - castPtrs(srcp_bwd), castPtrs(srcp_bwd), temp_bwd, temp_bwd, + castPtrs(srcp_bwd), castPtrs(srcp_fwd), temp_bwd, temp_fwd, offset_x, offset_y, width, height, stride, channels ); } else if (bits <= 16) { nlmAccumulationDispatch_u16( weightp, wdstp, max_weightp, - castPtrs(srcp_bwd), castPtrs(srcp_bwd), temp_bwd, temp_bwd, + castPtrs(srcp_bwd), castPtrs(srcp_fwd), temp_bwd, temp_fwd, offset_x, offset_y, width, height, stride, channels ); } else {