diff --git a/AudioExample/AudioExample/Services/AudioContent.swift b/AudioExample/AudioExample/Services/AudioContent.swift index c515a22..662f0f5 100644 --- a/AudioExample/AudioExample/Services/AudioContent.swift +++ b/AudioExample/AudioExample/Services/AudioContent.swift @@ -101,7 +101,7 @@ enum AudioContent: Int, CaseIterable { case .nonOptimized: return URL(string: "https://github.com/dimitris-c/sample-audio/raw/main/bensound-jazzyfrenchy.m4a")! case .local: - let path = Bundle.main.path(forResource: "bensound-jazzyfrenchy", ofType: "mp3")! + let path = Bundle.main.path(forResource: "bensound-jazzyfrenchy", ofType: "m4a")! return URL(fileURLWithPath: path) case .localWave: let path = Bundle.main.path(forResource: "hipjazz", ofType: "wav")! diff --git a/AudioStreaming/Streaming/Audio Source/Mp4/Mp4Restructure.swift b/AudioStreaming/Streaming/Audio Source/Mp4/Mp4Restructure.swift index ac4eea2..04616fa 100644 --- a/AudioStreaming/Streaming/Audio Source/Mp4/Mp4Restructure.swift +++ b/AudioStreaming/Streaming/Audio Source/Mp4/Mp4Restructure.swift @@ -145,7 +145,7 @@ final class Mp4Restructure { // This atom can be quite large, and may exceed 2^32 bytes, in which case the size field will be set to 1, // and the header will contain a 64-bit extended size field. if atomSize == 1 { - atomSize = Int(try getInteger(data: data, offset: atomOffset + 8) as UInt64) + atomSize = Int(try getInteger(data: data, offset: atomOffset + 8) as UInt64) } let mdat = MP4Atom(type: atomType, size: atomSize, offset: atomOffset) atoms.append(mdat)