'Raises AACError'

@convert_error(IOError, AACError)
def __init__(self, fileobj):

    start_offset = 0
    header = fileobj.read(10)
    if header.startswith('ID3'):
        size = BitPaddedInt(header[6:])
        start_offset = (size + 10)
    fileobj.seek(start_offset)
    adif = fileobj.read(4)
    if (adif == 'ADIF'):
        self._parse_adif(fileobj)
        self._type = 'ADIF'
    else:
        self._parse_adts(fileobj, start_offset)
        self._type = 'ADTS'
