def int_to_fourcc(value, byteorder='big', signed=False):
    """
    Converts a 32-bit integer to a 4 character code.
    """
    return value.to_bytes(4, byteorder, signed=signed).decode(encoding=
        'latin-1')
