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

v1.08: Add handling of AC-3 audio codec too...

This commit is contained in:
Jeff Schiller 2023-02-01 21:59:26 -08:00
parent a24524e772
commit 44beb992bf
3 changed files with 29 additions and 6 deletions

View file

@ -122,6 +122,8 @@ export function getFullMIMEString(info) {
case 'aac': codecFrags.add(getMP4ACodecString(stream)); break;
case 'vorbis': codecFrags.add('vorbis'); break;
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;
default:
throw `Could not handle codec_name ${stream.codec_name}, ` +
`codec_tag_string ${stream.codec_tag_string} for file ${info.format.filename} yet. ` +