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 b8b00c25e16621df3de6bab0332bd4a071f713e2 Author: Michael Niedermayer <[email protected]> AuthorDate: Mon May 18 21:40:45 2026 +0200 Commit: Michael Niedermayer <[email protected]> CommitDate: Sat Jun 13 05:19:06 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 10bea25232..8e12af7232 100644 --- a/libavformat/soxdec.c +++ b/libavformat/soxdec.c @@ -81,7 +81,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]
