mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
avfilter/vf_bilateral: properly round float result
This commit is contained in:
parent
4e4057e437
commit
cf0881bcfc
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue