Skip to content

Commit 8c5fa82

Browse files
jprjrrobwalch
andauthored
passthrough-remuxer: simplify return value
Co-authored-by: Rob Walch <robwalch@users.noreply.github.com>
1 parent a9e25e9 commit 8c5fa82

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/remux/passthrough-remuxer.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -256,11 +256,8 @@ function getParsedTrackCodec(
256256
if (parsedCodec === 'avc1' || type === ElementaryStreamTypes.VIDEO) {
257257
return 'avc1.42e01e';
258258
}
259-
if (parsedCodec === 'fLaC') {
260-
return 'fLaC';
261-
}
262-
if (parsedCodec === 'Opus') {
263-
return 'Opus';
259+
if (parsedCodec === 'fLaC' || parsedCodec === 'Opus') {
260+
return parsedCodec;
264261
}
265262
return 'mp4a.40.5';
266263
}

0 commit comments

Comments
 (0)