StreamingKit icon indicating copy to clipboard operation
StreamingKit copied to clipboard

Do not attempt to retrieve magic cookie from MP3 files.

Open belakva opened this issue 10 years ago • 2 comments

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.

belakva avatar Aug 15 '16 10:08 belakva

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.

belakva avatar Aug 16 '16 09:08 belakva

Hi @belakva and thanks for the PR. Could you please sort the merge conflicts?

diegostamigni avatar Mar 19 '19 10:03 diegostamigni