[FFmpeg-devel] [PATCH] aacdec_usac: correct Mps212 parsing location
Lynne
dev at lynne.ee
Mon Apr 28 09:58:29 EEST 2025
It gets parsed after SBR, even if there is no SBR.
---
libavcodec/aac/aacdec_usac.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/libavcodec/aac/aacdec_usac.c b/libavcodec/aac/aacdec_usac.c
index ccdf58bc8e..ef0c115aa0 100644
--- a/libavcodec/aac/aacdec_usac.c
+++ b/libavcodec/aac/aacdec_usac.c
@@ -1478,11 +1478,11 @@ static int decode_usac_core_coder(AACDecContext *ac, AACUSACConfig *usac,
ret = ff_aac_sbr_decode_usac_data(ac, che, ec, gb, sbr_ch, indep_flag);
if (ret < 0)
return ret;
+ }
- if (ec->stereo_config_index) {
- avpriv_report_missing_feature(ac->avctx, "AAC USAC Mps212");
- return AVERROR_PATCHWELCOME;
- }
+ if (ec->stereo_config_index) {
+ avpriv_report_missing_feature(ac->avctx, "AAC USAC Mps212");
+ return AVERROR_PATCHWELCOME;
}
spectrum_decode(ac, usac, che, core_nb_channels);
--
2.49.0.395.g12beb8f557c
More information about the ffmpeg-devel
mailing list