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

Git pushed a commit to branch master
in repository ffmpeg.

commit b2ba26a694b81d0ded50c4689da20c41671b14f6
Author:     James Almer <[email protected]>
AuthorDate: Tue May 19 12:51:20 2026 -0300
Commit:     James Almer <[email protected]>
CommitDate: Wed May 20 10:59:02 2026 -0300

    avformat/adtsenc: don't accept channeConfiguration values that can't be 
coded
    
    the ADTS header only has 3 bits for it, so anything higher than 7 can't be
    used.
    
    Signed-off-by: James Almer <[email protected]>
---
 libavformat/adtsenc.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavformat/adtsenc.c b/libavformat/adtsenc.c
index 0671224fc2..d63f8d91da 100644
--- a/libavformat/adtsenc.c
+++ b/libavformat/adtsenc.c
@@ -76,6 +76,10 @@ static int adts_decode_extradata(AVFormatContext *s, 
ADTSContext *adts, const ui
         av_log(s, AV_LOG_ERROR, "Escape sample rate index illegal in ADTS\n");
         return AVERROR_INVALIDDATA;
     }
+    if (adts->channel_conf > 7) {
+        av_log(s, AV_LOG_ERROR, "channelConfiguration > 7 is not supported in 
ADTS\n");
+        return AVERROR_INVALIDDATA;
+    }
     if (get_bits(&gb, 1)) {
         av_log(s, AV_LOG_ERROR, "960/120 MDCT window is not allowed in 
ADTS\n");
         return AVERROR_INVALIDDATA;

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

Reply via email to