Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not attempt to retrieve magic cookie from MP3 files. #299

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

belakva
Copy link

@belakva belakva commented Aug 15, 2016

Related issue #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.

Nikita Borisov added 3 commits August 15, 2016 13:40
MP3 files do not have magic cookies https://www.google.ch/patents/US20090019087 so an attempt to retrieve magic cookie from mp3 file causes method to return before the converter was created.
@belakva
Copy link
Author

belakva commented Aug 16, 2016

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.

@diegostamigni
Copy link
Collaborator

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

@diegostamigni diegostamigni self-assigned this Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants