mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-11 17:55:21 +00:00
avfilter/vf_atadenoise: compensate for small overall brightness loss
This is very hard to spot.
This commit is contained in:
parent
b20dee813a
commit
c3985c0ea8
@ -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…
Reference in New Issue
Block a user