1
0
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:
Paul B Mahol 2022-03-01 09:22:15 +01:00
parent 316e0ff752
commit 5ffad29d62

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