diff --git a/Classes/DocumentWindowController.swift b/Classes/DocumentWindowController.swift index 9013134..f17ccda 100644 --- a/Classes/DocumentWindowController.swift +++ b/Classes/DocumentWindowController.swift @@ -318,20 +318,21 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe } @IBAction func prettifyAudioTrackNames(_ sender: Any) { + // Iterate audio tracks for track in mp4.tracks { if let audioTrack = track as? MP42AudioTrack { - // Lookup number of channels from Format cell - let lowerBound = String.Index.init(encodedOffset: audioTrack.formatSummary.count-4) - let upperBound = String.Index.init(encodedOffset: audioTrack.formatSummary.count-3) - let channelCount = Int(String(audioTrack.formatSummary[lowerBound..