Commit 5ffad29d authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_chromanr: fix rounding of final output

parent 316e0ff7
......@@ -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); \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment