Ticket #59 (closed defect: fixed)

Opened 15 months ago

Last modified 15 months ago

Error when reaching end of file in decoder

Reported by: jddupas Owned by: gbooker
Priority: normal Milestone:
Component: a52codec Version: 1.7.7
Severity: normal Keywords:
Cc:

Description

Hello,

I have a problem when I'm reaching the end of file with the decoder. It returns a kAudioCodecNotEnoughBufferSpace error.

This error is throw at the line 1174 in the ACShepA52Decoder file because ioInputDataByteSize == 0. According to some other Apple sample (the sample flac codec in CoreAudioSDK) it look like it's perfectly valid to have ioInputDataByteSize == 0. It just mean that the end of the file is reached.

I encounter this problem when I process an MPEG4 file using the "ConvertFile?/UseAC-AF" sample code (from the CoreAudio? SDK too).

Thanks,

Change History

Changed 15 months ago by gbooker

  • status changed from new to closed
  • resolution set to fixed

(In [73]) Do nothing if the input buffer is zero bytes. Fixes #59

Note: See TracTickets for help on using tickets.