ffmpeg/libswscale
Michael Niedermayer 1818f9f4dc
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-05-26 00:04:31 +02:00
..
aarch64 swscale: aarch64: Fix yuv2rgb with negative strides 2022-11-04 14:32:53 +02:00
arm arm: swscale: Only compile the rgb2yuv asm if .dn aliases are supported 2018-03-31 21:54:56 +03:00
ppc libswscale: Adds conversions from/to float gray format. 2018-08-14 18:22:39 +02:00
tests swscale/tests/swscale: Lengthen pixfmt name buffer to 21 bytes 2019-06-27 17:50:47 +02:00
x86 swscale/x86/swscale: Fix undefined left shifts of negative numbers 2020-07-01 22:28:47 +02:00
Makefile Merge commit '92db5083077a8b0f8e1050507671b456fd155125' 2017-05-04 19:59:30 -03:00
alphablend.c swscale/alphablend: Fix slice handling 2021-10-06 12:06:15 +02:00
bayer_template.c
gamma.c
hscale.c avutil: Rename FF_CEIL_COMPAT to AV_CEIL_COMPAT 2016-01-27 16:36:46 +00:00
hscale_fast_bilinear.c
input.c swscale/input: Use more unsigned intermediates 2023-05-26 00:04:31 +02:00
libswscale.v build: Change structure of the linker version script templates 2016-05-29 16:43:11 +02:00
log2_tab.c
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-05-26 00:04:30 +02:00
rgb2rgb.c swscale/rgb : move shuffle func shuffle_bytes_1230, shuffle_bytes_3012, shuffle_bytes_3210 in order to add SIMD 2018-03-24 20:22:02 +01:00
rgb2rgb.h swscale/rgb2rgb : cosmetic, move shuffle_bytes func declaration 2018-03-24 20:22:17 +01:00
rgb2rgb_template.c lsws/rgb2rgb_template: Do not compile unneeded shuffle functions on big-endian. 2018-06-10 03:22:59 +02:00
slice.c swscale/slice: Fix wrong return on error 2021-09-09 13:54:52 +02:00
swscale.c swscale/swscale: Fix several invalid shifts related to vChrDrop 2020-07-03 12:10:23 +02:00
swscale.h doxygen: Standardize root-level modules 2016-08-02 22:15:25 -07:00
swscale_internal.h libswscale: Adds conversions from/to float gray format. 2018-08-14 18:22:39 +02:00
swscale_unscaled.c swscale/swscale_unscaled : rename packed_16bpc_bswap 2018-10-24 21:21:20 +02:00
swscaleres.rc
utils.c swscale/utils: Fix invalid left shifts of negative numbers 2020-07-01 22:29:20 +02:00
version.h Bump minor versions for branching 4.1 2018-11-02 00:15:32 +01:00
vscale.c swscale: cleanup unused code 2016-03-31 16:36:16 -03:00
yuv2rgb.c swscale/yuv2rgb: Fix vertical dither offset with slices 2020-07-03 12:10:24 +02:00