mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
avfilter/framepool: add a few padding lines by aligning height
Fixes segfaults when handling files with odd chroma subsampled dimensions in some scenarios like using the hstack filter. ./ffmpeg -lavfi testsrc=s=255x31,format=yuv420p -vframes 1 -y in.jpg && \ ./ffmpeg -i in.jpg -i in.jpg -i in.jpg -i in.jpg -filter_complex "xstack=inputs=4:grid=2x2" -y out.png Fixes issue #21739. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -92,7 +92,7 @@ FFFramePool *ff_frame_pool_video_init(AVBufferRef* (*alloc)(size_t size),
|
||||
linesizes[i] = pool->linesize[i];
|
||||
|
||||
if (av_image_fill_plane_sizes(sizes, pool->format,
|
||||
pool->height,
|
||||
FFALIGN(pool->height, align),
|
||||
linesizes) < 0) {
|
||||
goto fail;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user