On Sunday, May 26, 2002, at 04:19 PM, Russell O'Connor wrote:
Suppose after calling mad_header_decode I call mad_frame_decode. Is it possible that mad_frame_decode will giver a MAD_ERROR_BUFLEN or MAD_ERROR_BUFPTR, or will a successful call to mad_header_decode garentee there is enough info in the buffer to atempt a frame decode?
The buffer checks are performed while decoding the frame header, so if you have already successfully called mad_header_decode(), then mad_frame_decode() generally will not fail with MAD_ERROR_BUFLEN or MAD_ERROR_BUFPTR.
-- Rob Leslie rob@mars.org