This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit c98810ac7829712a73fa93dff538859766385233 Author: Niklas Haas <[email protected]> AuthorDate: Sun Apr 12 17:35:35 2026 +0200 Commit: Niklas Haas <[email protected]> CommitDate: Thu Apr 16 20:59:39 2026 +0000 swscale/ops_dispatch: zero-init tail buffer Prevents valgrind from complaining about operating on uninitialized bytes. This should be cheap as it's only done once during setup(). Signed-off-by: Niklas Haas <[email protected]> --- libswscale/ops_dispatch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libswscale/ops_dispatch.c b/libswscale/ops_dispatch.c index 9abb3df8ec..38a9f026b0 100644 --- a/libswscale/ops_dispatch.c +++ b/libswscale/ops_dispatch.c @@ -242,11 +242,11 @@ static int op_pass_setup(const SwsFrame *out, const SwsFrame *in, alloc_size += aligned_w * sizeof(*exec->in_offset_x); } - uint8_t *tail_buf = av_fast_realloc(p->tail_buf, &p->tail_buf_size, alloc_size); - if (!tail_buf) + av_fast_mallocz(&p->tail_buf, &p->tail_buf_size, alloc_size); + if (!p->tail_buf) return AVERROR(ENOMEM); - p->tail_buf = tail_buf; + uint8_t *tail_buf = p->tail_buf; for (int i = 0; memcpy_in && i < p->planes_in; i++) { tail->in[i] = tail_buf; tail_buf += tail->in_stride[i] * in->height; _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
