mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-14 02:50:11 +01:00
avfilter/vf_chromanr: fix rounding of final output
This commit is contained in:
@@ -161,8 +161,8 @@ static int distance ## _slice##name(AVFilterContext *ctx, void *arg,
|
|||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
out_uptr[x] = su / cn; \
|
out_uptr[x] = (su + (cn >> 1)) / cn; \
|
||||||
out_vptr[x] = sv / cn; \
|
out_vptr[x] = (sv + (cn >> 1)) / cn; \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
out_uptr += out_ulinesize / sizeof(type); \
|
out_uptr += out_ulinesize / sizeof(type); \
|
||||||
|
|||||||
Reference in New Issue
Block a user