This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new d2d79dca9a avformat/soxdec: Check sample_rate for nan
d2d79dca9a is described below

commit d2d79dca9a36a3e89880c389161934598d62690a
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Mon May 18 21:40:45 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Mon May 25 01:15:28 2026 +0000

    avformat/soxdec: Check sample_rate for nan
    
    Found-by: iceray-Li
    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]

Reply via email to