1
0
Fork 0
mirror of https://github.com/codedread/bitjs synced 2025-10-03 17:49:16 +02:00

fLaC back to flac

This commit is contained in:
Jeff Schiller 2023-02-12 18:07:04 -08:00
parent 8d04be44dd
commit 73c4080579
2 changed files with 3 additions and 4 deletions

View file

@ -127,8 +127,7 @@ export function getFullMIMEString(info) {
case 'opus': codecFrags.add('opus'); break;
// I'm going off of what Chromium calls this one, with the dash.
case 'ac3': codecFrags.add('ac-3'); break;
// It seems to be "fLaC".
case 'flac': codecFrags.add(stream.codec_tag_string); break;
case 'flac': codecFrags.add('flac'); break;
default:
throw `Could not handle audio codec_name ${stream.codec_name}, ` +
`codec_tag_string ${stream.codec_tag_string} for file ${info.format.filename} yet. ` +

View file

@ -360,7 +360,7 @@ describe('codecs test suite', () => {
info.streams[0].codec_name = 'flac';
expect(getFullMIMEString(info))
.to.be.a('string')
.and.equals('audio/mp4; codecs="fLaC"');
.and.equals('audio/mp4; codecs="flac"');
});
it('video/mp4 handles fLaC', () => {
@ -373,7 +373,7 @@ describe('codecs test suite', () => {
});
expect(getFullMIMEString(vInfo))
.to.be.a('string')
.and.equals('video/mp4; codecs="fLaC"');
.and.equals('video/mp4; codecs="flac"');
});
});