audio_core: Implement Apple AudioToolbox AAC decoder. (#6510)

This commit is contained in:
Steveice10
2023-05-09 16:35:49 -07:00
committed by GitHub
parent 3a27603e3d
commit d8e74a9ff4
9 changed files with 298 additions and 4 deletions

View File

@ -18,6 +18,8 @@ ADTSData ParseADTS(const char* buffer) {
out.length = 0;
return out;
}
// bit 16 = no CRC
out.header_length = (buffer[1] & 0x1) ? 7 : 9;
out.MPEG2 = (buffer[1] >> 3) & 0x1;
// bit 17 to 18
out.profile = (buffer[2] >> 6) + 1;