swscale/graph: ensure intermediate buffers have extra line padding

This basically guarantees that optimized packed routines have enough
space to write a few bytes past the end of the line.

Signed-off-by: Niklas Haas <git@haasn.dev>
This commit is contained in:
Niklas Haas committed 2026-08-09 21:03:33 +02:00
1 parent 0f7eec026c
commit 4af33ec418
1 file changed
+1 -1
+1 -1
View File
@@ -63,7 +63,7 @@ static int frame_alloc_planes(AVFrame *dst)
return ret;
const int align = av_cpu_max_align();
const int aligned_w = FFALIGN(dst->width, align);
const int aligned_w = FFALIGN(dst->width + 1, align); /* add space for over-write */
ret = av_image_fill_linesizes(dst->linesize, dst->format, aligned_w);
if (ret < 0)
return ret;