mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-11-06 05:17:42 +00:00
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:
1 parent
0f7eec026c
commit
4af33ec418
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user