1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

avfilter/vf_dblur: use lrintf()

This commit is contained in:
Paul B Mahol
2021-10-23 20:31:24 +02:00
parent a586ce0a21
commit 2148934ce3

View File

@@ -241,7 +241,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
if (s->depth == 8) { if (s->depth == 8) {
for (y = 0; y < height; y++) { for (y = 0; y < height; y++) {
for (x = 0; x < width; x++) { for (x = 0; x < width; x++) {
dst[x] = bptr[x]; dst[x] = lrintf(bptr[x]);
} }
bptr += width; bptr += width;
dst += out->linesize[plane]; dst += out->linesize[plane];
@@ -249,7 +249,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
} else { } else {
for (y = 0; y < height; y++) { for (y = 0; y < height; y++) {
for (x = 0; x < width; x++) { for (x = 0; x < width; x++) {
dst16[x] = bptr[x]; dst16[x] = lrintf(bptr[x]);
} }
bptr += width; bptr += width;
dst16 += out->linesize[plane] / 2; dst16 += out->linesize[plane] / 2;