This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 846823b174703acae204cc6f9dfa5ba6f794436f Author: Niklas Haas <[email protected]> AuthorDate: Thu Feb 26 20:21:59 2026 +0100 Commit: Niklas Haas <[email protected]> CommitDate: Fri Feb 27 16:18:34 2026 +0000 swscale/graph: don't pointlessly align data buffers Since d67d81a3748aa877c9c9, enabling asm explicitly requires aligned malloc, so this FFALIGN accomplishes nothing. Signed-off-by: Niklas Haas <[email protected]> --- libswscale/graph.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libswscale/graph.c b/libswscale/graph.c index 68050408bf..97cd6adbb2 100644 --- a/libswscale/graph.c +++ b/libswscale/graph.c @@ -64,13 +64,10 @@ static int frame_alloc_planes(AVFrame *dst) for (int i = 0; i < 4; i++) { if (!sizes[i]) break; - if (sizes[i] > SIZE_MAX - align) - return AVERROR(EINVAL); - - AVBufferRef *buf = av_buffer_alloc(sizes[i] + align); + AVBufferRef *buf = av_buffer_alloc(sizes[i]); if (!buf) return AVERROR(ENOMEM); - dst->data[i] = (uint8_t *) FFALIGN((uintptr_t) buf->data, align); + dst->data[i] = buf->data; dst->buf[i] = buf; } _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
