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 e33bbfbee6c0c21c90ad4c7a82a06dc100dcfb9b
Author:     Lynne <[email protected]>
AuthorDate: Tue Mar 10 17:24:46 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Tue Jun 16 05:45:35 2026 +0200

    aacdec_usac_mps212: reject reserved freq_res value
    
    (cherry picked from commit 7c79c79a5076db777052a738f1292c41a8979bab)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/aac/aacdec_usac.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/aac/aacdec_usac.c b/libavcodec/aac/aacdec_usac.c
index 9c969dcc86..4c744e0eef 100644
--- a/libavcodec/aac/aacdec_usac.c
+++ b/libavcodec/aac/aacdec_usac.c
@@ -215,6 +215,9 @@ static int decode_usac_element_pair(AACDecContext *ac,
 
     if (e->stereo_config_index) {
         e->mps.freq_res = get_bits(gb, 3); /* bsFreqRes */
+        if (!e->mps.freq_res)
+            return AVERROR_INVALIDDATA; /* value 0 is reserved */
+
         int numBands = ((int[]){0,28,20,14,10,7,5,4})[e->mps.freq_res]; // 
ISO/IEC 23003-1:2007, 5.2, Table 39
 
         e->mps.fixed_gain = get_bits(gb, 3); /* bsFixedGainDMX */

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

Reply via email to