This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/5.1 in repository ffmpeg.
commit a83f73a8036c9ab383a7fb3d06e807cf545925d4 Author: Paul B Mahol <[email protected]> AuthorDate: Wed Dec 20 09:48:19 2023 +0100 Commit: Michael Niedermayer <[email protected]> CommitDate: Sun Jun 21 02:56:26 2026 +0200 avfilter/af_stereotools: round-up max size of buffer Fixes: out of array access Fixes: tickets/10747/poc14ffmpeg Found-by: Zeng Yunxiang and Song Jiaxuan Signed-off-by: Michael Niedermayer <[email protected]> (cherry picked from commit e6459abfadabb43cdc4c807975e1a854da23644d) Signed-off-by: Michael Niedermayer <[email protected]> (cherry picked from commit 2936589de4cecd9e3980ebe89988e711852fd450) Signed-off-by: Michael Niedermayer <[email protected]> --- libavfilter/af_stereotools.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/af_stereotools.c b/libavfilter/af_stereotools.c index eedc7c68bd..779fc1e22d 100644 --- a/libavfilter/af_stereotools.c +++ b/libavfilter/af_stereotools.c @@ -119,7 +119,7 @@ static int config_input(AVFilterLink *inlink) AVFilterContext *ctx = inlink->dst; StereoToolsContext *s = ctx->priv; - s->length = FFALIGN(inlink->sample_rate / 10, 2); + s->length = FFALIGN((inlink->sample_rate + 9) / 10, 2); if (!s->buffer) s->buffer = av_calloc(s->length, sizeof(*s->buffer)); if (!s->buffer) _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
