avfilter/vf_chromanr: fix rounding of final output

This commit is contained in:
Paul B Mahol 2022-03-01 09:22:15 +01:00
parent 316e0ff752
commit 5ffad29d62
1 changed files with 2 additions and 2 deletions

View File

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