AudioConverterFillComplexBuffer() hangs on MP2-WAV files

Originator:lucius.kwok
Number:rdar://15712406 Date Originated:20-Dec-2013
Status:Open Resolved:
Product:OS X SDK Product Version:10.9 (13A603)
Classification:Hang Reproducible:Always
 
Summary:
Calling AudioConverterFillComplexBuffer() to decode a WAV file with MPEG1,layer2 compressed audio results in a hang with 100% CPU. Please run the attached Xcode project.

Steps to Reproduce:
1. Run the attached project from Xcode.
2. Watch the output in the window in the app.


Expected Results:
All of the test file should have been converted to PCM audio data, or an error should be returned if the file is not valid.

Actual Results:
App hangs after reading one packet of MP2 data.

Version:
Xcode version 5.0.2 (5A3005), Mac OS X 10.9 (13A603).

Notes:


Configuration:
This always happens using AudioConverter. This does not happen using ExtAudioFile to convert the file.

Attachments:
['TestAudioConverterMP2WAV.zip' is not included here.]

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!