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

Git pushed a commit to branch release/9.0
in repository ffmpeg.

commit 4832d32889f70d89c06acc830257b9aeefed06bb
Author:     qaq03101 <[email protected]>
AuthorDate: Fri Jul 17 14:05:55 2026 +0800
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Wed Aug 12 04:51:58 2026 +0200

    avformat/scd: reject zero-channel tracks
    
    A zero channel count can cause a division by zero in
    scd_read_packet().
    
    Reported-by: sdjasj
    Fixes #23181.
    Signed-off-by: qaq03101 <[email protected]>
    (cherry picked from commit 9c176644aadb80ff1dfc65dc9d73f132ab81c999)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/scd.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavformat/scd.c b/libavformat/scd.c
index 091d20824c..6c0c41486d 100644
--- a/libavformat/scd.c
+++ b/libavformat/scd.c
@@ -182,7 +182,8 @@ static int scd_read_track(AVFormatContext *s, 
SCDTrackHeader *track, int index)
     track->aux_count    = AV_RB32(buf + 28);
 
     /* Sanity checks */
-    if (track->num_channels > 8 || track->sample_rate >= 192000 ||
+    if (!track->num_channels || track->num_channels > 8 ||
+        track->sample_rate >= 192000 ||
         track->loop_start > track->loop_end)
         return AVERROR_INVALIDDATA;
 

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to