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:
parent
8d04be44dd
commit
73c4080579
2 changed files with 3 additions and 4 deletions
|
@ -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. ` +
|
||||
|
|
|
@ -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"');
|
||||
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue