avfilter/vf_atadenoise: compensate for small overall brightness loss

This is very hard to spot.
pull/323/head
Paul B Mahol 5 years ago
parent b20dee813a
commit c3985c0ea8
  1. 2
      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); \
} \
}

Loading…
Cancel
Save