diff options
author | Paul B Mahol <onemda@gmail.com> | 2019-10-16 13:16:41 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-10-16 13:18:47 +0200 |
commit | c3985c0ea88f30ac3e848a4296c7d2503dcdd5b3 (patch) | |
tree | 107be34540ba1c87cef54c93b0a5146238e8091e /libavfilter/vf_atadenoise.c | |
parent | b20dee813a5ced2fcef9cc5f0fee58034fe70466 (diff) | |
download | ffmpeg-c3985c0ea88f30ac3e848a4296c7d2503dcdd5b3.tar.gz |
avfilter/vf_atadenoise: compensate for small overall brightness loss
This is very hard to spot.
Diffstat (limited to 'libavfilter/vf_atadenoise.c')
-rw-r--r-- | libavfilter/vf_atadenoise.c | 2 |
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); \ } \ } |