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 7c79c79a50 aacdec_usac_mps212: reject reserved freq_res value
7c79c79a50 is described below
commit 7c79c79a5076db777052a738f1292c41a8979bab
Author: Lynne <[email protected]>
AuthorDate: Tue Mar 10 17:24:46 2026 +0100
Commit: Lynne <[email protected]>
CommitDate: Wed Mar 11 17:43:09 2026 +0000
aacdec_usac_mps212: reject reserved freq_res value
---
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 bb2f83cfa6..4331c7d8ff 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 */
+
e->mps.fixed_gain = get_bits(gb, 3); /* bsFixedGainDMX */
e->mps.temp_shape_config = get_bits(gb, 2); /* bsTempShapeConfig */
e->mps.decorr_config = get_bits(gb, 2); /* bsDecorrConfig */
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]