fix for edge cases with 6.1 ch track

This commit is contained in:
chrisk325 2026-02-27 14:58:48 +05:30 committed by GitHub
parent fe49d12df3
commit dfb63e9965
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -131,6 +131,7 @@ export const buildExoAudioTrackName = (t: any, i: number): string => {
const ch = channelCount ?? t.channelCount ?? null;
if (ch != null && ch > 0) {
if (ch === 8) parts.push('7.1');
else if (ch === 7) parts.push('6.1');
else if (ch === 6) parts.push('5.1');
else if (ch === 2) parts.push('2.0');
else if (ch === 1) parts.push('Mono');