mirror of https://git.ffmpeg.org/ffmpeg.git
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…
Reference in New Issue