FFmpeg/libswscale
Michael Niedermayer 0891a36dd8
swscale/input: Use more unsigned intermediates
Same principle as previous commit, with sufficiently huge rgb2yuv table
values this produces wrong results and undefined behavior.
The unsigned produces the same incorrect results. That is probably
ok as these cases with huge values seem not to occur in any real
use case.

Fixes: signed integer overflow
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit ba209e3d51)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2023-04-07 23:40:37 +02:00
..
aarch64 swscale: aarch64: Fix yuv2rgb with negative strides 2022-11-04 14:31:30 +02:00
arm swscale: arm: fix NEON hscale init 2020-05-15 23:33:46 +03:00
ppc lsws/ppc/yuv2rgb_altivec: Fix build in non-VSX environments 2021-02-22 23:19:21 -05:00
tests libswscale/tests: add floatimg_cmp test 2020-10-02 14:59:52 +02:00
x86 libswscale/x86/yuv2yuvX: Removes unrolling for mmx and mmxext 2021-04-03 19:43:39 +02:00
alphablend.c swscale/alphablend: Fix slice handling 2021-10-05 23:19:40 +02:00
bayer_template.c swscale: do not drop half of bits from 16bit bayer formats 2020-08-08 12:03:42 +02:00
gamma.c swscale: re-enable gamma 2015-09-04 19:00:20 -03:00
hscale_fast_bilinear.c
hscale.c avutil: Rename FF_CEIL_COMPAT to AV_CEIL_COMPAT 2016-01-27 16:36:46 +00:00
input.c swscale/input: Use more unsigned intermediates 2023-04-07 23:40:37 +02:00
libswscale.v build: Change structure of the linker version script templates 2016-05-29 16:43:11 +02:00
log2_tab.c
Makefile libswscale/tests: add floatimg_cmp test 2020-10-02 14:59:52 +02:00
options.c swscale/options: Use AV_OPT_TYPE_PIXEL_FMT 2016-11-20 13:00:22 +01:00
output.c swscale/output: Bias 16bps output calculations to improve non overflowing range 2023-04-07 23:40:36 +02:00
rgb2rgb_template.c swscale/rgb2rgb_template: use shuffle macro on big-endian arches 2020-12-12 23:07:22 -05:00
rgb2rgb.c swscale: aarch64: Add a NEON implementation of interleaveBytes 2020-05-15 23:38:17 +03:00
rgb2rgb.h swscale: aarch64: Add a NEON implementation of interleaveBytes 2020-05-15 23:38:17 +03:00
slice.c swscale/slice: Fix wrong return on error 2021-09-08 21:31:50 +02:00
swscale_internal.h lavu/mem: move the DECLARE_ALIGNED macro family to mem_internal on next+1 bump 2021-01-01 14:14:57 +01:00
swscale_unscaled.c lavu/mem: move the DECLARE_ALIGNED macro family to mem_internal on next+1 bump 2021-01-01 14:14:57 +01:00
swscale.c lavu/mem: move the DECLARE_ALIGNED macro family to mem_internal on next+1 bump 2021-01-01 14:14:57 +01:00
swscale.h doxygen: Standardize root-level modules 2016-08-02 22:15:25 -07:00
swscaleres.rc
utils.c swscale/utils: override forced-zero formats back to full range 2020-10-11 12:58:13 +03:00
version.h Bump Versions before release/4.4 branch 2021-03-20 01:01:12 +01:00
vscale.c swscale: make yuv2interleavedX more asm-friendly 2020-06-14 16:34:07 +01:00
yuv2rgb.c swscale/yuv2rgb: cosmetics 2020-07-25 10:20:42 +08:00