1
0
mirror of https://git.ffmpeg.org/ffmpeg.git synced 2026-10-24 02:09:03 +03:00
Files
ffmpeg/libswscale
Niklas Haas 2a1d9c080f 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
(cherry picked from commit b7946098b1)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2026-06-20 17:42:28 +02:00
..
2025-12-03 20:27:24 +01:00
2024-12-07 02:37:17 -05:00
2022-01-04 19:39:22 -06:00
2025-12-03 20:27:24 +01:00
2023-09-28 19:37:58 +02:00
2014-08-12 20:52:21 +02:00
2026-05-04 17:13:27 +02:00
2023-10-29 16:19:39 +01:00
2025-12-03 20:27:24 +01:00