This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 31e92a56caad583fbe3e868947382f38e8bb6abc Author: Ayoub Nabil Boubagrat <[email protected]> AuthorDate: Fri Aug 28 11:53:43 2026 +0200 Commit: michaelni <[email protected]> CommitDate: Mon Aug 31 13:42:52 2026 +0000 avfilter/firequalizer: reject overflowing delays Signed-off-by: Ayoub Nabil Boubagrat <[email protected]> --- libavfilter/af_firequalizer.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libavfilter/af_firequalizer.c b/libavfilter/af_firequalizer.c index f14983b431..63ac308365 100644 --- a/libavfilter/af_firequalizer.c +++ b/libavfilter/af_firequalizer.c @@ -728,6 +728,7 @@ static int config_input(AVFilterLink *inlink) FilterLink *l = ff_filter_link(inlink); AVFilterContext *ctx = inlink->dst; FIREqualizerContext *s = ctx->priv; + const double delay_samples = inlink->sample_rate * s->delay; float iscale, scale = 1.f; int rdft_bits, ret; @@ -736,7 +737,11 @@ static int config_input(AVFilterLink *inlink) s->next_pts = 0; s->frame_nsamples_max = 0; - s->fir_len = FFMAX(2 * (int)(inlink->sample_rate * s->delay) + 1, 3); + if (!isfinite(delay_samples) || delay_samples >= (INT_MAX + 1.0) / 2) { + av_log(ctx, AV_LOG_ERROR, "too large or non-finite delay, please decrease it.\n"); + return AVERROR(EINVAL); + } + s->fir_len = FFMAX(2 * (int)delay_samples + 1, 3); s->remaining = s->fir_len - 1; for (rdft_bits = RDFT_BITS_MIN; rdft_bits <= RDFT_BITS_MAX; rdft_bits++) { -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
