summaryrefslogtreecommitdiff
path: root/libavfilter/vf_atadenoise.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/vf_atadenoise.c')
-rw-r--r--libavfilter/vf_atadenoise.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_atadenoise.c b/libavfilter/vf_atadenoise.c
index be7c4e2a34..21c9bb3bac 100644
--- a/libavfilter/vf_atadenoise.c
+++ b/libavfilter/vf_atadenoise.c
@@ -169,7 +169,7 @@ static void filter_row##name(const uint8_t *ssrc, uint8_t *ddst, \
sum += srcix; \
} \
\
- dst[x] = sum / (r + l + 1); \
+ dst[x] = (sum + ((r + l + 1) >> 1)) / (r + l + 1); \
} \
}