This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit dd75b6b57c913b06da6f9cc49f5f01b0b14bdc27 Author: Niklas Haas <[email protected]> AuthorDate: Fri Mar 6 18:47:48 2026 +0100 Commit: Niklas Haas <[email protected]> CommitDate: Mon Mar 9 11:25:58 2026 +0100 swscale: add sanity clear on AVFrame *dst Before allocating/referencing buffers, make sure these fields are in a defined state. Signed-off-by: Niklas Haas <[email protected]> --- libswscale/swscale.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 351c67d011..8a07bded3d 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -1381,6 +1381,12 @@ int sws_scale_frame(SwsContext *sws, AVFrame *dst, const AVFrame *src) if (dst->data[0]) /* user-provided buffers */ goto process_frame; + /* Sanity */ + memset(dst->buf, 0, sizeof(dst->buf)); + memset(dst->data, 0, sizeof(dst->data)); + memset(dst->linesize, 0, sizeof(dst->linesize)); + dst->extended_data = dst->data; + if (src->buf[0] && top->noop && (!bot || bot->noop)) return frame_ref(dst, src); _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
