mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-08-09 17:39:08 +00:00
Real-world xHE-AAC streams and the ISO/IEC 23003-3 conformance sequences carry their loudness metadata exclusively as loudnessInfoV1() inside loudnessInfoSetExtension(), which was previously rejected with AVERROR_PATCHWELCOME, making such streams undecodable and loudness normalization inoperative on them. loudnessInfoV1() is identical to loudnessInfo() apart from an added eqSetId field. Parse it, restrict measurement selection to eqSetId == 0 (in line with the downmixId/drcSetId restrictions), and skip unknown loudnessInfoSetExtension() payloads using their explicitly coded size instead of erroring out.