This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/8.1 in repository ffmpeg.
commit e9b3388dcb53a779073ed0161d7837103fe7ab42 Author: Michael Niedermayer <[email protected]> AuthorDate: Mon May 18 21:40:45 2026 +0200 Commit: Michael Niedermayer <[email protected]> CommitDate: Sun Jun 14 04:40:53 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 c710b9a152..2f16a2a437 100644 --- a/libavformat/soxdec.c +++ b/libavformat/soxdec.c @@ -88,7 +88,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]
