Rémi Bernon (@rbernon) commented about dlls/winegstreamer/mfplat.c:
+ case 11025: write_bits(out, &bits, 10, 4); break; + case 8000: write_bits(out, &bits, 11, 4); break; + case 7350: write_bits(out, &bits, 12, 4); break; + default: + write_bits(out, &bits, 15, 4); + write_bits(out, &bits, frequency, 24); + break; + } + write_bits(out, &bits, channels, 4); + + if (raw) + *len = (bits + 7) / 8; + else + *len = FIELD_OFFSET(HEAACWAVEFORMAT, pbAudioSpecificConfig[(bits + 7) / 8]) - sizeof(user_data->wfInfo.wfx); + return S_OK; +} Fwiw I'm worried about this part that seems to come from the MPEG spec and would potentially make the code fall into some "possibly patented" category.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/5159#note_64346