Do not attempt to retrieve magic cookie from MP3 files.
Related issue https://github.com/tumtumtum/StreamingKit/issues/298 MP3 files do not have magic cookies so an attempt to retrieve magic cookie from mp3 file causes method to return before the converter was created.
@tumtumtum please, review this change. It might be, that original intent was to check for (self->currentlyReadingEntry.dataSource.audioFileTypeHint == kAudioFileAAC_ADTSType) instead.
Added handling of kAudioFileInvalidPacketOffsetError which happens sometimes in - (void)handleRecordingOfAudioPackets:(UInt32)numberOfPackets audioBuffer:(AudioBuffer *)audioBuffer.
Error description:
A packet offset was past the end of the file, or not at the end of the file when a VBR format was written, or a corrupt packet size was read when the packet table was built.
Hi @belakva and thanks for the PR. Could you please sort the merge conflicts?