Skip to content

Commit 73c4080

Browse files
committed
fLaC back to flac
1 parent 8d04be4 commit 73c4080

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

codecs/codecs.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,7 @@ export function getFullMIMEString(info) {
127127
case 'opus': codecFrags.add('opus'); break;
128128
// I'm going off of what Chromium calls this one, with the dash.
129129
case 'ac3': codecFrags.add('ac-3'); break;
130-
// It seems to be "fLaC".
131-
case 'flac': codecFrags.add(stream.codec_tag_string); break;
130+
case 'flac': codecFrags.add('flac'); break;
132131
default:
133132
throw `Could not handle audio codec_name ${stream.codec_name}, ` +
134133
`codec_tag_string ${stream.codec_tag_string} for file ${info.format.filename} yet. ` +

tests/codecs.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ describe('codecs test suite', () => {
360360
info.streams[0].codec_name = 'flac';
361361
expect(getFullMIMEString(info))
362362
.to.be.a('string')
363-
.and.equals('audio/mp4; codecs="fLaC"');
363+
.and.equals('audio/mp4; codecs="flac"');
364364
});
365365

366366
it('video/mp4 handles fLaC', () => {
@@ -373,7 +373,7 @@ describe('codecs test suite', () => {
373373
});
374374
expect(getFullMIMEString(vInfo))
375375
.to.be.a('string')
376-
.and.equals('video/mp4; codecs="fLaC"');
376+
.and.equals('video/mp4; codecs="flac"');
377377

378378
});
379379
});

0 commit comments

Comments
 (0)