This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/8.0 in repository ffmpeg.
commit 96b6ef6e0e5b5f1b9e24904469782eee1d338523 Author: Michael Niedermayer <[email protected]> AuthorDate: Mon May 18 21:40:45 2026 +0200 Commit: Michael Niedermayer <[email protected]> CommitDate: Sun Jun 14 04:59:01 2026 +0200 avformat/soxdec: Check sample_rate for nan Found-by: iceray-Li Signed-off-by: Michael Niedermayer <[email protected]> (cherry picked from commit d2d79dca9a36a3e89880c389161934598d62690a) Signed-off-by: Michael Niedermayer <[email protected]> --- libavformat/soxdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/soxdec.c b/libavformat/soxdec.c index ba349c870e..92b10be3f4 100644 --- a/libavformat/soxdec.c +++ b/libavformat/soxdec.c @@ -87,7 +87,7 @@ static int sox_read_header(AVFormatContext *s) return AVERROR_INVALIDDATA; } - if (sample_rate <= 0 || sample_rate > INT_MAX) { + if (sample_rate <= 0 || sample_rate > INT_MAX || isnan(sample_rate)) { av_log(s, AV_LOG_ERROR, "invalid sample rate (%f)\n", sample_rate); return AVERROR_INVALIDDATA; } _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
