ocv: replace FF_INTERNAL_MEM_TYPE_MAX_VALUE with SIZE_MAX