1
0
Fork 0
mirror of https://github.com/codedread/bitjs synced 2025-10-04 01:59:15 +02:00

1.1.5: Add support for HE-AAC profile in mp4a.

This commit is contained in:
Jeff Schiller 2023-10-22 09:40:41 -07:00
parent 2d0bb47014
commit ce8f61da94
4 changed files with 20 additions and 1 deletions

View file

@ -488,6 +488,15 @@ describe('codecs test suite', () => {
});
});
it('recognizes codec_name=HE-AAC', () => {
const info = structuredClone(baseInfo);
info.streams[0].profile = 'HE-AAC';
info.streams[0].codec_name = 'aac';
expect(getFullMIMEString(info))
.to.be.a('string')
.and.equals('audio/mp4; codecs="mp4a.40.5"');
});
it('handles codec_name=aac but no codec_tag_string', () => {
const info = structuredClone(baseInfo);
info.streams[0].profile = 'LC';