aboutsummaryrefslogtreecommitdiffstats
path: root/tests/checkasm/checkasm.c
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2024-12-02 13:08:52 +0100
committerNiklas Haas <git@haasn.dev>2024-12-04 11:38:47 +0100
commit2f95bc3cb3c0d2e88e33b219409e5ca2719f0c73 (patch)
treee98b42941517a664928f57bcd13be222165987c7 /tests/checkasm/checkasm.c
parent79452d382f7b55f258c17f8ed8a51feb5411713a (diff)
downloadffmpeg-2f95bc3cb3c0d2e88e33b219409e5ca2719f0c73.tar.gz
swscale/utils: disable full_chr_h_input optimization for odd width
The basic problem here is that the rgb*ToUV_half_* functions hard-code a bilinear downsample from src[i] + src[i+1], with no bounds check on the i+1 access. Due to the signature of the function, we cannot easily plumb the "true" width into the function body to perform a bounds check. Similarly, we cannot easily pre-pad the input because it is typically reading from the (const) input frame, which would require a full memcpy to pad. Either of these solutions are more trouble than the feature is worth, so just disable it on odd input sizes. Fixes: use of uninitialized value Fixes: ticket #11265 Signed-off-by: Niklas Haas <git@haasn.dev> Sponsored-by: Sovereign Tech Fund
Diffstat (limited to 'tests/checkasm/checkasm.c')
0 files changed, 0 insertions, 0 deletions