mirror of
https://github.com/librempeg/librempeg
synced 2024-11-21 16:44:05 +00:00
1101317540
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> Signed-off-by: Paul B Mahol <onemda@gmail.com> |
||
---|---|---|
.. | ||
api | ||
checkasm | ||
fate | ||
filtergraphs | ||
ref | ||
.gitignore | ||
audiogen.c | ||
audiomatch.c | ||
base64.c | ||
copycooker.sh | ||
extended.ffconcat | ||
fate-run.sh | ||
fate-valgrind.supp | ||
fate.sh | ||
Makefile | ||
md5.sh | ||
refcmp-metadata.awk | ||
reference.pnm | ||
rotozoom.c | ||
simple1.ffconcat | ||
simple2.ffconcat | ||
test.ffmeta | ||
tiny_psnr.c | ||
tiny_ssim.c | ||
utils.c | ||
videogen.c |