1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-28 20:53:54 +02:00
FFmpeg/libswscale
Michael Niedermayer f291b241a3
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-02-21 00:37:06 +01:00
..
aarch64 swscale: aarch64: Fix yuv2rgb with negative strides 2022-11-04 14:28:11 +02:00
arm
ppc
tests swscale: introduce isSwappedChroma 2022-01-04 19:39:22 -06:00
x86 swscale/output: Bias 16bps output calculations to improve non overflowing range for GBRP16/GBRPF32 2023-02-21 00:29:01 +01:00
alphablend.c swscale/alphablend: Fix slice handling 2021-10-03 20:38:29 +02:00
bayer_template.c
gamma.c
hscale_fast_bilinear.c
hscale.c
input.c swscale/input: Use more unsigned intermediates 2023-02-21 00:37:06 +01:00
libswscale.v
log2_tab.c
Makefile lib*/version: Move library version functions into files of their own 2022-05-10 06:49:32 +02:00
options.c Remove unnecessary libavutil/(avutil|common|internal).h inclusions 2022-02-24 12:56:49 +01:00
output.c swscale/output: Bias 16bps output calculations to improve non overflowing range for GBRP16/GBRPF32 2023-02-21 00:29:01 +01:00
rgb2rgb_template.c
rgb2rgb.c all: Replace if (ARCH_FOO) checks by #if ARCH_FOO 2022-06-15 04:56:37 +02:00
rgb2rgb.h Remove unnecessary libavutil/(avutil|common|internal).h inclusions 2022-02-24 12:56:49 +01:00
slice.c Replace all occurences of av_mallocz_array() by av_calloc() 2021-09-20 01:03:52 +02:00
swscale_internal.h Remove unnecessary libavutil/(avutil|common|internal).h inclusions 2022-02-24 12:56:49 +01:00
swscale_unscaled.c libswscale: force a minimum size of the slide for bayer sources 2022-10-14 12:24:21 +02:00
swscale.c all: Replace if (ARCH_FOO) checks by #if ARCH_FOO 2022-06-15 04:56:37 +02:00
swscale.h Keep including the full version.h when headers are included externally 2022-03-19 00:01:57 +02:00
swscaleres.rc
utils.c all: Replace if (ARCH_FOO) checks by #if ARCH_FOO 2022-06-15 04:56:37 +02:00
version_major.h libswscale: Split version.h 2022-03-16 14:05:26 +02:00
version.c lib*/version: Move library version functions into files of their own 2022-05-10 06:49:32 +02:00
version.h Bump Versions for 5.1 branch 2022-07-13 00:27:37 +02:00
vscale.c Replace all occurences of av_mallocz_array() by av_calloc() 2021-09-20 01:03:52 +02:00
yuv2rgb.c all: Replace if (ARCH_FOO) checks by #if ARCH_FOO 2022-06-15 04:56:37 +02:00