ffmpeg | branch: master | Paul B Mahol <one...@gmail.com> | Sat Oct 23 20:31:24 2021 +0200| [2148934ce3145940419ccc5b2d7ae93d11a043aa] | committer: Paul B Mahol
avfilter/vf_dblur: use lrintf() > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2148934ce3145940419ccc5b2d7ae93d11a043aa --- libavfilter/vf_dblur.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_dblur.c b/libavfilter/vf_dblur.c index 48c21c81b6..c1e20fef6c 100644 --- a/libavfilter/vf_dblur.c +++ b/libavfilter/vf_dblur.c @@ -241,7 +241,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) if (s->depth == 8) { for (y = 0; y < height; y++) { for (x = 0; x < width; x++) { - dst[x] = bptr[x]; + dst[x] = lrintf(bptr[x]); } bptr += width; dst += out->linesize[plane]; @@ -249,7 +249,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) } else { for (y = 0; y < height; y++) { for (x = 0; x < width; x++) { - dst16[x] = bptr[x]; + dst16[x] = lrintf(bptr[x]); } bptr += width; dst16 += out->linesize[plane] / 2; _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".