This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 0ba7514f995eb2d598cc574c7b459cb64e122c86 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/acrossover: reject non-finite parameters Signed-off-by: Ayoub Nabil Boubagrat <[email protected]> --- libavfilter/af_acrossover.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libavfilter/af_acrossover.c b/libavfilter/af_acrossover.c index 8b2786bae2..2f2cdde56b 100644 --- a/libavfilter/af_acrossover.c +++ b/libavfilter/af_acrossover.c @@ -172,6 +172,10 @@ static int parse_gains(AVFilterContext *ctx) s->gains[i] = expf(gain * M_LN10 / 20.f); else s->gains[i] = gain; + if (!isfinite(s->gains[i])) { + av_log(ctx, AV_LOG_ERROR, "Gain %f must be finite.\n", gain); + return AVERROR(EINVAL); + } } for (; i < MAX_BANDS; i++) @@ -203,8 +207,8 @@ static av_cold int init(AVFilterContext *ctx) av_log(ctx, AV_LOG_ERROR, "Invalid syntax for frequency[%d].\n", i); return AVERROR(EINVAL); } - if (freq <= 0) { - av_log(ctx, AV_LOG_ERROR, "Frequency %f must be positive number.\n", freq); + if (!isfinite(freq) || freq <= 0) { + av_log(ctx, AV_LOG_ERROR, "Frequency %f must be a positive finite number.\n", freq); return AVERROR(EINVAL); } -- 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]
