FFmpeg/libswscale
Michael Niedermayer 832cb64af2
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-06-04 20:18:11 +02:00
..
aarch64 swscale: aarch64: Fix yuv2rgb with negative strides 2022-11-04 14:33:28 +02:00
arm swscale/arm: add yuv2planeX_8_neon 2016-04-11 18:13:36 +02:00
ppc swscale: Drop is9_OR_10BPS() use, its name is not correct 2016-11-10 00:33:12 +01:00
tests swscale/tests/swscale: Lengthen pixfmt name buffer to 21 bytes 2019-11-14 23:30:37 +01:00
x86 swscale/x86/swscale: Fix undefined left shifts of negative numbers 2020-07-03 00:03:44 +02:00
alphablend.c swscale/alphablend: Fix slice handling 2021-10-09 18:34:49 +02:00
bayer_template.c swscale/bayer_template: Add () to protect the argument of BAYER_READ() 2015-02-18 01:55:15 +01:00
gamma.c swscale: re-enable gamma 2015-09-04 19:00:20 -03:00
hscale.c avutil: Rename FF_CEIL_COMPAT to AV_CEIL_COMPAT 2016-01-27 16:36:46 +00:00
hscale_fast_bilinear.c sws: Move fast bilinear C code into seperate file 2014-07-19 05:36:26 +02:00
input.c swscale/input: Use more unsigned intermediates 2023-06-04 20:18:11 +02:00
libswscale.v build: Change structure of the linker version script templates 2016-05-29 16:43:11 +02:00
log2_tab.c lsws: duplicate ff_log2_tab 2014-08-12 20:52:21 +02:00
Makefile Merge commit '92db508307' 2017-05-04 19:59:30 -03: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-06-04 20:18:10 +02:00
rgb2rgb.c lsws/rgb2rgb: Add unscaled 48bit to 64bit rgb conversion. 2017-08-24 12:50:06 +02:00
rgb2rgb.h lsws/rgb2rgb: Add unscaled 48bit to 64bit rgb conversion. 2017-08-24 12:50:06 +02:00
rgb2rgb_template.c avutil: Rename FF_CEIL_COMPAT to AV_CEIL_COMPAT 2016-01-27 16:36:46 +00:00
slice.c swscale/slice: Fix wrong return on error 2021-09-12 11:22:04 +02:00
swscale.c swscale/swscale: Fix several invalid shifts related to vChrDrop 2020-07-02 19:55:09 +02:00
swscale.h doxygen: Standardize root-level modules 2016-08-02 22:15:25 -07:00
swscale_internal.h Merge commit 'ea7ee4b4e3' 2017-04-26 16:23:28 +02:00
swscale_unscaled.c lsws/rgb2rgb: Add unscaled 48bit to 64bit rgb conversion. 2017-08-24 12:50:06 +02:00
swscaleres.rc
utils.c swscale/utils: Fix invalid left shifts of negative numbers 2020-07-03 00:03:45 +02:00
version.h Bump minor versions for branching 3.4 2017-10-11 01:23:47 +02: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-02 19:55:09 +02:00