avfilter/vf_atadenoise: compensate for small overall brightness loss

This is very hard to spot.
This commit is contained in:
Paul B Mahol 2019-10-16 13:16:41 +02:00
parent b20dee813a
commit c3985c0ea8

View File

@ -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); \
} \
}