'Update offset tables in all \'stco\' and \'co64\' atoms.'

def __update_offsets(self, fileobj, atoms, delta, offset):

    if (delta == 0):
        return
    moov = atoms['moov']
    for atom in moov.findall('stco', True):
        self.__update_offset_table(fileobj, '>%dI', atom, delta, offset)
    for atom in moov.findall('co64', True):
        self.__update_offset_table(fileobj, '>%dQ', atom, delta, offset)
    try:
        for atom in atoms['moof'].findall('tfhd', True):
            self.__update_tfhd(fileobj, atom, delta, offset)
    except KeyError:
        pass
