mirror of https://github.com/FFmpeg/FFmpeg.git
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 Fundpull/391/head
parent
79452d382f
commit
2f95bc3cb3
1 changed files with 1 additions and 1 deletions
Loading…
Reference in new issue