mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avfilter/vf_chromanr: fix rounding of final output
This commit is contained in:
parent
316e0ff752
commit
5ffad29d62
@ -161,8 +161,8 @@ static int distance ## _slice##name(AVFilterContext *ctx, void *arg,
|
||||
} \
|
||||
} \
|
||||
\
|
||||
out_uptr[x] = su / cn; \
|
||||
out_vptr[x] = sv / cn; \
|
||||
out_uptr[x] = (su + (cn >> 1)) / cn; \
|
||||
out_vptr[x] = (sv + (cn >> 1)) / cn; \
|
||||
} \
|
||||
\
|
||||
out_uptr += out_ulinesize / sizeof(type); \
|
||||
|
Loading…
x
Reference in New Issue
Block a user