aboutsummaryrefslogtreecommitdiffstats
path: root/tools/source2c
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2025-07-30 13:36:21 +0200
committerNiklas Haas <ffmpeg@haasn.dev>2025-07-31 11:32:20 +0000
commitb7946098b19af4f06661213d591a5ed9cd3d26ff (patch)
tree586ab73ba050860f80c196896904b6e95aff85cf /tools/source2c
parent119d127d05c910db0f0d31c1b124a8d60fd0d75d (diff)
downloadffmpeg-b7946098b19af4f06661213d591a5ed9cd3d26ff.tar.gz
swscale/alphablend: don't overread alpha plane on subsampled odd size
This function overreads the input plane for odd dimensions, because the chroma plane is always rounded up, which means (xy << subsample) + 1 exceeds the actual alpha plane size. To verify: valgrind ffmpeg -pix_fmt yuva420p -f lavfi -i color -vf \ "scale=1x1,format=yuva420p,scale=alphablend=uniform_color,format=yuv420p \ -vframes 1 -f null - Fixes: https://trac.ffmpeg.org/ticket/11692
Diffstat (limited to 'tools/source2c')
0 files changed, 0 insertions, 0 deletions