aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_bwdif_vulkan.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-05-13 01:02:49 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-05-17 13:16:58 +0200
commitdff0a1557eabd435d251eaf10157b40bca4eefb5 (patch)
tree60c45dbc6cb86ee7e3e0f1da2253baa50a6f85af /libavfilter/vf_bwdif_vulkan.c
parentd4083ecb7c872807aa24b6ec5865f8a2fba95cf2 (diff)
downloadffmpeg-dff0a1557eabd435d251eaf10157b40bca4eefb5.tar.gz
tests/checkasm/llauddsp: Avoid UB integer overflow
The only multiplicators used in scalarproduct_and_madd_* are -1, 0 and +1. Yet it is of type int and the checkasm test uses the complete range of int for it, leading to overflows that don't happen for actual users. Fix this by using a more reasonable range for mul: Given that it is used in v1[i] += v3[i] * mul with v1 being a 16bit integer, it makes no sense to use values for mul that don't fit into 16bit. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_bwdif_vulkan.c')
0 files changed, 0 insertions, 0 deletions