ffmpeg | branch: master | Paul B Mahol <one...@gmail.com> | Thu Oct 21 21:59:14 
2021 +0200| [cf0881bcfc88b4afb62a4647b0e09809e9612a5b] | committer: Paul B Mahol

avfilter/vf_bilateral: properly round float result

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cf0881bcfc88b4afb62a4647b0e09809e9612a5b
---

 libavfilter/vf_bilateral.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_bilateral.c b/libavfilter/vf_bilateral.c
index aecde64860..8fe341f70d 100644
--- a/libavfilter/vf_bilateral.c
+++ b/libavfilter/vf_bilateral.c
@@ -284,7 +284,7 @@ static void bilateral_##name(BilateralContext *s, const 
uint8_t *ssrc, uint8_t *
                                                                                
           \
     for (int i = 0; i < height; i++)                                           
           \
         for (int j = 0; j < width; j++)                                        
           \
-            dst[j + i * dst_linesize] = img_out_f[i * width + j];              
           \
+            dst[j + i * dst_linesize] = lrintf(img_out_f[i * width + j]);      
           \
 }
 
 BILATERAL(uint8_t, byte)

_______________________________________________
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".

Reply via email to